Skip to content

Commit

Permalink
Use 125 for exit code when startup fails
Browse files Browse the repository at this point in the history
This mirros what docker uses when container cannot be created.
  • Loading branch information
nbdd0121 committed Apr 19, 2024
1 parent 4dd2c6d commit 62b7ace
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ async fn main() {
let code = match result {
Ok(code) => code,
Err(err) => {
eprintln!("Error: {err:?}");
1
log::error!("{err:?}");
125
}
};
// Upon returning from `main`, tokio will attempt to shutdown, but if there're any blocking
Expand Down

0 comments on commit 62b7ace

Please sign in to comment.