Skip to content

Commit

Permalink
Add note about using tracing for program error output
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptibell committed Mar 22, 2024
1 parent 08e9c5f commit fe3eeb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ async fn main() {
.init();

if let Err(e) = Args::parse().run().await {
// NOTE: We use tracing for errors here for consistent
// output between returned errors, and errors that
// may be logged while the program is running.
error!("{e}");
exit(1);
}
Expand Down

0 comments on commit fe3eeb4

Please sign in to comment.