1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-06 19:21:43 +00:00

Add error handling

This commit is contained in:
sharkdp
2018-10-11 22:50:37 +02:00
committed by David Peter
parent 5af176c94f
commit 866b9e16a8
3 changed files with 33 additions and 22 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ fn run_controller(config: &Config) -> Result<bool> {
/// Returns `Err(..)` upon fatal errors. Otherwise, returns `Some(true)` on full success and
/// `Some(false)` if any intermediate errors occurred (were printed).
fn run() -> Result<bool> {
let app = App::new();
let app = App::new()?;
match app.matches.subcommand() {
("cache", Some(cache_matches)) => {