summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Maas <opensource@till.name>2012-09-26 21:22:26 +0200
committerTill Maas <opensource@till.name>2012-09-26 21:22:26 +0200
commitd817d974cab1f9271301d29a28c3895c208faa1f (patch)
tree6fe63c7015a5f09d8b08f1b1edb9173f15fe8a91
parent855f5c0c7a59b3b595b9d3e31ca3b140ddb384ca (diff)
downloadcnucnu-d817d974cab1f9271301d29a28c3895c208faa1f.tar.gz
cnucnu-d817d974cab1f9271301d29a28c3895c208faa1f.tar.xz
cnucnu-d817d974cab1f9271301d29a28c3895c208faa1f.zip
show package name and exception message
-rwxr-xr-xcnucnu.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cnucnu.py b/cnucnu.py
index 63e84ce..f4a4acb 100755
--- a/cnucnu.py
+++ b/cnucnu.py
@@ -54,8 +54,8 @@ class Actions(object):
bug_url = p.report_outdated(dry_run=args.dry_run)
if bug_url:
print bug_url
- except cc_errors.UpstreamVersionRetrievalError:
- log.error("Failed to fetch upstream information for package '%s'" % p.name)
+ except cc_errors.UpstreamVersionRetrievalError, e:
+ log.error("Failed to fetch upstream information for package '%s' (%s)" % (p.name, e.message))
except cc_errors.PackageNotFoundError, e:
log.error(e)
except Exception, e: