revert printing file/lineno in Error-messages as these are typically user-visible

For info and warn it's fine
This commit is contained in:
holger krekel
2019-12-16 00:37:32 +01:00
committed by Alexander Krotov
parent 19e716b522
commit 2bf9fd6cbc

View File

@@ -31,8 +31,7 @@ macro_rules! error {
};
($ctx:expr, $msg:expr, $($args:expr),* $(,)?) => {{
let formatted = format!($msg, $($args),*);
let full = format!("{}:{}: {}", file!(), line!(), &formatted);
emit_event!($ctx, $crate::Event::Error(full));
emit_event!($ctx, $crate::Event::Error(formatted));
}};
}