Skip to content

Commit

Permalink
fix: Use the correct exit status for errors (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jan 24, 2024
1 parent cdc6839 commit 3ecc33d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,19 @@ fn main() {
Some(window) => Some(window),
None => {
error!("Failed to retrieve the window.");
return;
std::process::exit(1);
}
},
None => {
error!("Failed to access the window system.");
return;
std::process::exit(1);
}
}
} else {
None
};
if let Err(e) = App::new(window, &settings).start() {
error!("{}", e);
std::process::exit(1);
}
}

0 comments on commit 3ecc33d

Please sign in to comment.