Skip to content

Commit

Permalink
cli: exit with code 1 on invalid config
Browse files Browse the repository at this point in the history
This should have been part of the previous commit (fix for #55).
  • Loading branch information
martinvonz committed Feb 20, 2022
1 parent 108b785 commit 2916cb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fn main() {
let mut ui = Ui::for_terminal(UserSettings::default());
ui.write_error(&format!("Invalid config: {}\n", err))
.unwrap();
std::process::exit(1);
}
}
}

0 comments on commit 2916cb2

Please sign in to comment.