diff options
author | kurrik@chromium.org <kurrik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-28 18:40:35 +0000 |
---|---|---|
committer | kurrik@chromium.org <kurrik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-28 18:40:35 +0000 |
commit | 934208b4d7ae50dc37527caf050015fcf5b5ae4c (patch) | |
tree | 248e4c01a2b1ab02eee1a60854e899974a0a6d21 /chrome/common | |
parent | dd44c71cb5848c46e32a313238747f4769415acb (diff) | |
download | chromium_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.py | 2 |
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) |