mirror of
https://github.com/chatmail/core.git
synced 2026-04-24 08:56:29 +03:00
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:
committed by
Alexander Krotov
parent
19e716b522
commit
2bf9fd6cbc
@@ -31,8 +31,7 @@ macro_rules! error {
|
|||||||
};
|
};
|
||||||
($ctx:expr, $msg:expr, $($args:expr),* $(,)?) => {{
|
($ctx:expr, $msg:expr, $($args:expr),* $(,)?) => {{
|
||||||
let formatted = format!($msg, $($args),*);
|
let formatted = format!($msg, $($args),*);
|
||||||
let full = format!("{}:{}: {}", file!(), line!(), &formatted);
|
emit_event!($ctx, $crate::Event::Error(formatted));
|
||||||
emit_event!($ctx, $crate::Event::Error(full));
|
|
||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user