Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7998)

Unified Diff: chrome/common/extensions/docs/build/directory.py

Issue 5975005: Adding extra debugging to extension docs build process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/common/extensions/docs/build
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/build/directory.py
diff --git a/chrome/common/extensions/docs/build/directory.py b/chrome/common/extensions/docs/build/directory.py
index f95344fcb099a27b46e54c358f24ac5548d29a5e..04c748fe1baa83f8ce662519df3bf410f52248cd 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)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698