verbose error messages in Qt applications (closes #775)

This commit is contained in:
Romain Bignon 2012-02-05 17:18:20 +01:00
commit dfb52a2624
4 changed files with 18 additions and 8 deletions

View file

@ -446,6 +446,7 @@ class ConsoleApplication(BaseApplication):
msg = unicode(error)
if not msg:
msg = 'invalid login/password.'
# TODO ask to reconfigure backend
print >>sys.stderr, 'Error(%s): %s' % (backend.name, msg)
if self.ask('Do you want to reconfigure this backend?', default=True):
self.unload_backends(names=[backend.name])