fix english error, display exception message

This commit is contained in:
Christophe Benz 2010-11-17 14:17:03 +01:00
commit 16fe553f51

View file

@ -407,7 +407,7 @@ class ReplApplication(Cmd, BaseApplication):
except CallErrors, e:
self.bcall_errors_handler(e)
except NotEnoughArguments, e:
print >>sys.stderr, 'Error: no enough arguments.'
print >>sys.stderr, 'Error: not enough arguments. %s' % str(e)
except (KeyboardInterrupt,EOFError):
# ^C during a command process doesn't exit application.
print '\nAborted.'