From 5da3b7a07356dac806a66e5248acf0ee6f02f839 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 19 Jul 2009 16:10:57 -0400 Subject: More verbose User/UsageError reporting in be-handle-mail --- interfaces/email/interactive/be-handle-mail | 6 ++++-- 1 file 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 -- cgit