Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: disabling display location section #2118

Merged
merged 13 commits into from Sep 17, 2023
8 changes: 5 additions & 3 deletions crates/nargo_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ const PANIC_MESSAGE: &str = "This is a bug. We may have already fixed this in ne

fn main() -> eyre::Result<()> {
// Register a panic hook to display more readable panic messages to end-users
let (panic_hook, _) =
HookBuilder::default().display_env_section(false).panic_section(PANIC_MESSAGE).into_hooks();
panic_hook.install();
HookBuilder::default()
.display_env_section(false)
.display_location_section(cfg!(debug_assertions))
This conversation was marked as resolved.
Show resolved Hide resolved
.panic_section(PANIC_MESSAGE)
.install()?;
jfecher marked this conversation as resolved.
Show resolved Hide resolved

start_cli()
}
Loading