Added line numbers and file idents to crashes

main
Michal 2 years ago
parent e6935dd655
commit afc0a7cf85

@ -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)
}
}

Loading…
Cancel
Save