not all errors are "permission errors"
This commit is contained in:
@@ -137,8 +137,8 @@ def copytree(source, destination, sym = False):
|
|||||||
if isDirectory(source) or isLink(source):
|
if isDirectory(source) or isLink(source):
|
||||||
try:
|
try:
|
||||||
shutil.copytree(source, destination, sym)
|
shutil.copytree(source, destination, sym)
|
||||||
except OSError:
|
except OSError, e:
|
||||||
error(_('ActionsAPI [copytree]: Permission denied: %s to %s') % (source, destination))
|
error(_('ActionsAPI [copytree] %s to %s: %s') % (source, destination, e))
|
||||||
else:
|
else:
|
||||||
error(_('ActionsAPI [copytree]: Directory %s doesn\'t exists.') % (source))
|
error(_('ActionsAPI [copytree]: Directory %s doesn\'t exists.') % (source))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user