Skip to content

Commit

Permalink
Improve human panic output
Browse files Browse the repository at this point in the history
Exclude authors from the report as I don't wish to receive mails with
crash reports, and explicitly mention Github issues as venue to submit
reports.
  • Loading branch information
swsnr committed Nov 12, 2024
1 parent 2af2dfc commit 051bbbf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ use mdcat::output::Output;

fn main() {
// Setup human-readable panic handling for release builds
human_panic::setup_panic!();
human_panic::setup_panic!(
human_panic::Metadata::new(env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"))
.homepage(env!("CARGO_PKG_HOMEPAGE"))
.support(
"Please open an issue at https://github.com/swsnr/mdcat/issues/new?labels=bug\nPlease include the source document which caused this crash.",
)
);

// Setup tracing
let filter = EnvFilter::builder()
Expand Down

0 comments on commit 051bbbf

Please sign in to comment.