aboutsummaryrefslogtreecommitdiffstats
path: root/interfaces/email/interactive/be-handle-mail
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-07-19 16:10:57 -0400
committerW. Trevor King <wking@drexel.edu>2009-07-19 16:10:57 -0400
commit5da3b7a07356dac806a66e5248acf0ee6f02f839 (patch)
treeb8da0d8708ec8454a368e0bf7d4d79a2ded2b1a9 /interfaces/email/interactive/be-handle-mail
parent06fce8dc2f382521421d06ae62c889ebfcf53367 (diff)
downloadbugseverywhere-5da3b7a07356dac806a66e5248acf0ee6f02f839.tar.gz
More verbose User/UsageError reporting in be-handle-mail
Diffstat (limited to 'interfaces/email/interactive/be-handle-mail')
-rwxr-xr-xinterfaces/email/interactive/be-handle-mail6
1 files changed, 4 insertions, 2 deletions
diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail
index 590824a..1feba92 100755
--- a/interfaces/email/interactive/be-handle-mail
+++ b/interfaces/email/interactive/be-handle-mail
@@ -218,9 +218,11 @@ class Command (object):
except libbe.cmdutil.GetCompletions:
self.err = InvalidOption(self.msg, self.command, u"--complete")
except libbe.cmdutil.UsageError, e:
- self.err = InvalidCommand(self.msg, self, type(e))
+ self.err = InvalidCommand(self.msg, self,
+ "%s\n%s" % (type(e), unicode(e)))
except libbe.cmdutil.UserError, e:
- self.err = InvalidCommand(self.msg, self, type(e))
+ self.err = InvalidCommand(self.msg, self,
+ "%s\n%s" % (type(e), unicode(e)))
# restore stdin, stdout, and stderr
if self.stdin != None:
sys.__stdin__ = new_stdin