summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorkurrik@chromium.org <kurrik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-28 18:40:35 +0000
committerkurrik@chromium.org <kurrik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-28 18:40:35 +0000
commit934208b4d7ae50dc37527caf050015fcf5b5ae4c (patch)
tree248e4c01a2b1ab02eee1a60854e899974a0a6d21 /chrome/common
parentdd44c71cb5848c46e32a313238747f4769415acb (diff)
downloadchromium_src-934208b4d7ae50dc37527caf050015fcf5b5ae4c.zip
chromium_src-934208b4d7ae50dc37527caf050015fcf5b5ae4c.tar.gz
chromium_src-934208b4d7ae50dc37527caf050015fcf5b5ae4c.tar.bz2
Adding extra debugging to extension docs build process.
TEST=Path is printed if invalid zip file exists in examples directory BUG=None Review URL: http://codereview.chromium.org/5975005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/docs/build/directory.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/common/extensions/docs/build/directory.py b/chrome/common/extensions/docs/build/directory.py
index f95344f..04c748f 100644
--- a/chrome/common/extensions/docs/build/directory.py
+++ b/chrome/common/extensions/docs/build/directory.py
@@ -640,6 +640,8 @@ class Sample(dict):
old_zip_file = zipfile.ZipFile(zip_path, 'r')
except IOError, msg:
raise Exception("Could not read zip at %s: %s" % (zip_path, msg))
+ except zipfile.BadZipfile, msg:
+ raise Exception("File at %s is not a zip file: %s" % (zip_path, msg))
try:
info = old_zip_file.getinfo(zip_manifest_path)