[geary/mjog/rfc822-cleanup-part-n: 7/9] Geary.Imap.FolderSession: Tighten up preview generation error handling
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/mjog/rfc822-cleanup-part-n: 7/9] Geary.Imap.FolderSession: Tighten up preview generation error handling
- Date: Thu, 30 Jul 2020 03:08:57 +0000 (UTC)
commit 784bac58a121d67fce435bfc851eb11f1f6649c2
Author: Michael Gratton <mike vee net>
Date: Tue Jun 30 14:41:30 2020 +1000
Geary.Imap.FolderSession: Tighten up preview generation error handling
src/engine/imap/api/imap-folder-session.vala | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/engine/imap/api/imap-folder-session.vala b/src/engine/imap/api/imap-folder-session.vala
index b75552d33..af01a803b 100644
--- a/src/engine/imap/api/imap-folder-session.vala
+++ b/src/engine/imap/api/imap-folder-session.vala
@@ -1012,8 +1012,10 @@ private class Geary.Imap.FolderSession : Geary.Imap.SessionObject {
Geary.RFC822.Message? message = null;
try {
message = email.get_message();
- } catch (Error e) {
- // Not enough fields to construct the message
+ } catch (EngineError.INCOMPLETE_MESSAGE err) {
+ debug("Not enough fields to construct message for preview: %s", err.message);
+ } catch (GLib.Error err) {
+ warning("Error constructing message for preview: %s", err.message);
}
if (message != null) {
string preview = message.get_preview();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]