[geary/wip/email-flag-refinement: 6/6] Throw the correct error when email id is not valid for create_or_merge
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/email-flag-refinement: 6/6] Throw the correct error when email id is not valid for create_or_merge
- Date: Wed, 13 Feb 2019 08:31:02 +0000 (UTC)
commit 7c05f5d3907aea29de0c7c0e5bca8d0c0c28e333
Author: Michael Gratton <mike vee net>
Date: Wed Feb 13 18:48:24 2019 +1100
Throw the correct error when email id is not valid for create_or_merge
src/engine/imap-db/imap-db-folder.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/engine/imap-db/imap-db-folder.vala b/src/engine/imap-db/imap-db-folder.vala
index 591fcc00..904fead9 100644
--- a/src/engine/imap-db/imap-db-folder.vala
+++ b/src/engine/imap-db/imap-db-folder.vala
@@ -1360,7 +1360,7 @@ private class Geary.ImapDB.Folder : BaseObject, Geary.ReferenceSemantics {
if (email_id == null ||
email_id.message_id != Db.INVALID_ROWID ||
email_id.uid == null) {
- throw new EngineError.INCOMPLETE_MESSAGE(
+ throw new EngineError.BAD_PARAMETERS(
"IMAP message with UID required"
);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]