From: W. Trevor King Date: Sun, 19 Jul 2009 20:10:57 +0000 (-0400) Subject: More verbose User/UsageError reporting in be-handle-mail X-Git-Tag: 1.0.0~62^2~46^2~18 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5da3b7a07356dac806a66e5248acf0ee6f02f839;p=be.git More verbose User/UsageError reporting in be-handle-mail --- 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