Fix string formatting

We were omitting an '%' where we needed it. Also include the traceback
information where it belongs in the new ui.error infrastructure.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Sebastian Spaeth 2011-08-22 17:22:41 +02:00 committed by Nicolas Sebrecht
parent 2b9b6be6be
commit a6480d4959

View File

@ -436,7 +436,6 @@ class BaseFolder(object):
raise raise
self.ui.error(e, exc_info()[2]) self.ui.error(e, exc_info()[2])
except Exception, e: except Exception, e:
self.ui.error(e, msg = "ERROR attempting to sync folder %s " self.ui.error(e, exc_info()[2], "Syncing folder %s [acc: %s]" %\
"[acc: %s]:\n %s" (self, self.getaccountname(), (self, self.getaccountname()))
traceback.format_exc()))
raise # raise unknown Exceptions so we can fix them raise # raise unknown Exceptions so we can fix them