[geary/mjog/rfc822-cleanup-part-deux: 7/8] 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-deux: 7/8] Geary.Imap.FolderSession: Tighten up preview generation error handling
- Date: Tue, 30 Jun 2020 04:50:14 +0000 (UTC)
commit 53d17dbe0955b73055975c15fbf8726a0213f886
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 56b5c4356..c424721c3 100644
--- a/src/engine/imap/api/imap-folder-session.vala
+++ b/src/engine/imap/api/imap-folder-session.vala
@@ -1003,8 +1003,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]