From afc0a7cf8574ae106e21dca7d2458ddb860fac95 Mon Sep 17 00:00:00 2001 From: Michal Date: Sat, 23 Jul 2022 18:16:39 +0100 Subject: [PATCH] Added line numbers and file idents to crashes --- src/internal/strings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/strings.rs b/src/internal/strings.rs index b5b314b..5e54c24 100755 --- a/src/internal/strings.rs +++ b/src/internal/strings.rs @@ -24,7 +24,7 @@ macro_rules! log { #[macro_export] macro_rules! crash { ($exit_code:expr, $($arg:tt)+) => { - $crate::internal::strings::crash_fn(&format!($($arg)+), $exit_code) + $crate::internal::strings::crash_fn(&format!("{}:{} {}", file!(), line!(), format!($($arg)+)), $exit_code) } }