Skip to content

Commit

Permalink
πŸ› Return proper error code on malformed settings file (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
a-kenji authored Aug 27, 2024
1 parent eff288b commit ac53d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Application for Centerpiece {
fn new(flags: crate::cli::CliArgs) -> (Self, iced::Command<Message>) {
let settings = crate::settings::Settings::try_from(flags).unwrap_or_else(|_| {
eprintln!("There is an issue with the settings, please check the configuration file.");
std::process::exit(0);
std::process::exit(1);
});

(
Expand Down

0 comments on commit ac53d8a

Please sign in to comment.