[Pkg-mozext-commits] [mozilla-devscripts] 06/06: Print script name in error message.
Benjamin Drung
bdrung at moszumanska.debian.org
Fri May 9 21:48:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
bdrung pushed a commit to branch master
in repository mozilla-devscripts.
commit 6c2571614022d59d3369147859d899e75d24acf4
Author: Benjamin Drung <bdrung at debian.org>
Date: Fri May 9 23:47:43 2014 +0200
Print script name in error message.
---
amo-changelog | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/amo-changelog b/amo-changelog
index a6c7468..ad4a823 100755
--- a/amo-changelog
+++ b/amo-changelog
@@ -18,9 +18,10 @@
from __future__ import print_function
import argparse
+import os
+import sys
import urllib2
import xml.etree.cElementTree as etree
-import sys
URL_TEMPLATE = "https://addons.mozilla.org/en-US/addon/{ext}/versions/format:rss"
@@ -36,7 +37,8 @@ def main():
try:
fp = urllib2.urlopen(url)
except urllib2.HTTPError as error:
- print("For extension '%s', error fetching '%s': %s" % (options.extension, url, error),
+ print("%s: For extension '%s', error fetching '%s': %s" %
+ (os.path.basename(sys.argv[0]), options.extension, url, error),
file=sys.stderr)
return 1
try:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/mozilla-devscripts.git
More information about the Pkg-mozext-commits
mailing list