Skip to content

Commit

Permalink
Hide unnecessary error details in release mode
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Oct 9, 2023
1 parent 99274ab commit a60536f
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 @@ -204,6 +204,10 @@ pub enum CliError {
}

fn main() -> ExitCode {
#[cfg(not(debug_assertions))]
error_stack::Report::install_debug_hook::<std::panic::Location>(|_, _| {});
error_stack::Report::install_debug_hook::<ExitCode>(|_, _| {});

let args = Ftzz::parse();

#[cfg(not(feature = "trace"))]
Expand Down

0 comments on commit a60536f

Please sign in to comment.