From 6237e9f87fea52799cbd80a2f10fe7af273891a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 21 Oct 2005 09:23:57 +0000 Subject: [PATCH] not all errors are "permission errors" --- pisi/actionsapi/shelltools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/actionsapi/shelltools.py b/pisi/actionsapi/shelltools.py index 55ddb7c5..223cf0ec 100644 --- a/pisi/actionsapi/shelltools.py +++ b/pisi/actionsapi/shelltools.py @@ -137,8 +137,8 @@ def copytree(source, destination, sym = False): if isDirectory(source) or isLink(source): try: shutil.copytree(source, destination, sym) - except OSError: - error(_('ActionsAPI [copytree]: Permission denied: %s to %s') % (source, destination)) + except OSError, e: + error(_('ActionsAPI [copytree] %s to %s: %s') % (source, destination, e)) else: error(_('ActionsAPI [copytree]: Directory %s doesn\'t exists.') % (source))