Return Err from MimeFactory::from_msg on database errors

This commit is contained in:
Alexander Krotov
2020-01-08 19:45:57 +03:00
parent 67d85f0f86
commit b05ee10f41

View File

@@ -165,19 +165,9 @@ impl<'a, 'b> MimeFactory<'a, 'b> {
)) ))
}, },
); );
let (in_reply_to, references) = row?;
match row {
Ok((in_reply_to, references)) => {
factory.in_reply_to = in_reply_to; factory.in_reply_to = in_reply_to;
factory.references = references; factory.references = references;
}
Err(err) => {
error!(
context,
"mimefactory: failed to load mime_in_reply_to: {:?}", err
);
}
}
Ok(factory) Ok(factory)
} }