From d72bb88729b95d1a6b8e377c286680fbd24b04c8 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 9 Jan 2012 09:57:36 +0100 Subject: [PATCH] Improve error message Add *what* UID was returned in case savemessage did not return a UID>0 Signed-off-by: Sebastian Spaeth --- offlineimap/folder/UIDMaps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/offlineimap/folder/UIDMaps.py b/offlineimap/folder/UIDMaps.py index 1a6283c..ac0a9b4 100644 --- a/offlineimap/folder/UIDMaps.py +++ b/offlineimap/folder/UIDMaps.py @@ -191,7 +191,8 @@ class MappedIMAPFolder(IMAPFolder): newluid = self._mb.savemessage(-1, content, flags, rtime) if newluid < 1: - raise ValueError("Backend could not find uid for message") + raise ValueError("Backend could not find uid for message, returned " + "%s" % newluid) self.maplock.acquire() try: self.diskl2r[newluid] = uid