createfolder: Fix wrong error output

If folder creation failed, we would output the wrong repository and
folder name (copy'n paste error). Fix this so we actually output the
correct values.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth 2011-10-05 18:41:38 +02:00
parent b0fd6c6ab8
commit 097b7ab2b0

View File

@ -207,9 +207,8 @@ class BaseRepository(object, CustomConfig.ConfigHelperMixin):
src_repo.makefolder(newsrc_name) src_repo.makefolder(newsrc_name)
src_haschanged = True # Need to refresh list src_haschanged = True # Need to refresh list
except OfflineImapError, e: except OfflineImapError, e:
self.ui.error(e, exc_info()[2], self.ui.error(e, exc_info()[2], "Creating folder %s on "
"Creating folder %s on repository %s" %\ "repository %s" % (newsrc_name, src_repo))
(src_name, dst_repo))
raise raise
status_repo.makefolder(newsrc_name.replace( status_repo.makefolder(newsrc_name.replace(
src_repo.getsep(), status_repo.getsep())) src_repo.getsep(), status_repo.getsep()))