Skip to content

Commit

Permalink
debug log error in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kevlarr committed Apr 20, 2023
1 parent 7198a49 commit c16cf1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ fn main() -> ExitCode {
warn!("");
warn!("{}", e);

if cfg!(debug_assertions) {
warn!("\n{:#?}", e);
}

// TODO: More fine-grained error-dependent codes?
// See: https://github.com/kevlarr/jrny/issues/33
ExitCode::FAILURE
Expand Down

0 comments on commit c16cf1e

Please sign in to comment.