Fix T46699: copy_prev_settings() gives misleading error message when previous version's config dir doesn't exist.

This commit is contained in:
Bastien Montagne
2015-11-05 11:10:31 +01:00
parent 3863660c37
commit 06ef778e08

View File

@@ -1402,7 +1402,7 @@ class WM_OT_copy_prev_settings(Operator):
if os.path.isdir(path_dst):
self.report({'ERROR'}, "Target path %r exists" % path_dst)
elif not os.path.isdir(path_src):
self.report({'ERROR'}, "Source path %r exists" % path_src)
self.report({'ERROR'}, "Source path %r does not exist" % path_src)
else:
shutil.copytree(path_src, path_dst, symlinks=True)