VMM/mailbox: Be more detailed if doveadm couldn't create mailboxes. v0.6.x
authorPascal Volk <neverseen@users.sourceforge.net>
Fri, 28 Jan 2011 11:03:11 +0000
branchv0.6.x
changeset 377 920cb090eb09
parent 376 2af61bc06215
child 378 af56cee51e67
VMM/mailbox: Be more detailed if doveadm couldn't create mailboxes.
VirtualMailManager/mailbox.py
--- a/VirtualMailManager/mailbox.py	Thu Jan 20 00:41:09 2011 +0000
+++ b/VirtualMailManager/mailbox.py	Fri Jan 28 11:03:11 2011 +0000
@@ -251,7 +251,8 @@
         process = Popen(cmd_args, stdout=PIPE, stderr=PIPE)
         stdout, stderr = process.communicate()
         if process.returncode:
-            raise VMMError(stderr.strip(), VMM_ERROR)
+            e_msg = _(u'Failed to create mailboxes: %r\n') % mailboxes
+            raise VMMError(e_msg + stderr.strip(), VMM_ERROR)
 
     def create(self):
         """Create a dbox INBOX"""