mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 13:36:30 +03:00
Return Err from MimeFactory::from_msg on database errors
This commit is contained in:
@@ -165,19 +165,9 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
|
||||
))
|
||||
},
|
||||
);
|
||||
|
||||
match row {
|
||||
Ok((in_reply_to, references)) => {
|
||||
factory.in_reply_to = in_reply_to;
|
||||
factory.references = references;
|
||||
}
|
||||
Err(err) => {
|
||||
error!(
|
||||
context,
|
||||
"mimefactory: failed to load mime_in_reply_to: {:?}", err
|
||||
);
|
||||
}
|
||||
}
|
||||
let (in_reply_to, references) = row?;
|
||||
factory.in_reply_to = in_reply_to;
|
||||
factory.references = references;
|
||||
|
||||
Ok(factory)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user