Always describe the context of the displayed error

This commit is contained in:
Alexander Krotov
2020-05-04 16:35:42 +03:00
parent bb59cf94e9
commit 3035c8af30
2 changed files with 2 additions and 2 deletions

View File

@@ -1215,7 +1215,7 @@ pub fn set_msg_failed(context: &Context, msg_id: MsgId, error: Option<impl AsRef
}
if let Some(error) = error {
msg.param.set(Param::Error, error.as_ref());
error!(context, "{}", error.as_ref());
error!(context, "Message failed: {}", error.as_ref());
}
if sql::execute(