From 097b7ab2b03aaceba818e25d12856886333b10fd Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 5 Oct 2011 18:41:38 +0200 Subject: [PATCH] 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 --- offlineimap/repository/Base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/offlineimap/repository/Base.py b/offlineimap/repository/Base.py index 972aefb..8f400f0 100644 --- a/offlineimap/repository/Base.py +++ b/offlineimap/repository/Base.py @@ -207,9 +207,8 @@ class BaseRepository(object, CustomConfig.ConfigHelperMixin): src_repo.makefolder(newsrc_name) src_haschanged = True # Need to refresh list except OfflineImapError, e: - self.ui.error(e, exc_info()[2], - "Creating folder %s on repository %s" %\ - (src_name, dst_repo)) + self.ui.error(e, exc_info()[2], "Creating folder %s on " + "repository %s" % (newsrc_name, src_repo)) raise status_repo.makefolder(newsrc_name.replace( src_repo.getsep(), status_repo.getsep()))