Skip to content

Commit

Permalink
If not configured, print message
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed Nov 15, 2021
1 parent c190602 commit 5a194d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ fn main() {
exit(255);
}
};
// Check if configured
if config.sources.is_empty() {
eprintln!("tuifeed must be configured first. Run `tuifeed -c`");
exit(255);
}
// Run ui
Ui::new(config, args.ticks).run();
}

Expand Down

0 comments on commit 5a194d5

Please sign in to comment.