Added line numbers and file idents to crashes

main
Michal 2 years ago
parent 2d651b75e5
commit e4d2a81da7
No known key found for this signature in database
GPG Key ID: A6A1A4DCB22279B9

@ -24,7 +24,7 @@ macro_rules! log {
#[macro_export] #[macro_export]
macro_rules! crash { macro_rules! crash {
($exit_code:expr, $($arg:tt)+) => { ($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)
} }
} }

Loading…
Cancel
Save