From 4afad094dd3274590bf00c947e926cacef62f4c1 Mon Sep 17 00:00:00 2001 From: Paul Mabileau Date: Sat, 21 Sep 2024 18:49:34 +0200 Subject: [PATCH] Feat(main): Integrate human-panic Signed-off-by: Paul Mabileau --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index b4754f1..2e72cb1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -37,6 +37,8 @@ pub const OPEN_ISSUE_MSG: &str = /// Wrap the desired main and let `color-eyre` display errors. fn main() -> Result<()> { + // More user-guiding panics in release builds. + human_panic::setup_panic!(); // Logging and error reporting are controlled by the CLI arguments, so they // must be parsed first. let args = LinerArgs::parse_env();