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

Unified Diff: tools/gypv8sh.py

Issue 10332081: gypv8sh; only catch CalledProcessException, rather than Exception (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months 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: tools/gypv8sh.py
diff --git a/tools/gypv8sh.py b/tools/gypv8sh.py
index 7018db91f34d019fd459a672bcba71502c3b9889..7f4a7b545a76817422aed0782a78ef0c36b51be9 100755
--- a/tools/gypv8sh.py
+++ b/tools/gypv8sh.py
@@ -44,7 +44,8 @@ def main ():
try:
subprocess.check_call(cmd, stdout=open(cxxoutfile, 'w'))
shutil.copyfile(inputfile, jsoutfile)
- except Exception, ex:
+ except subprocess.CalledProcessException, ex:
+ print "returncode", ex.returncode
print ex
os.remove(cxxoutfile)
os.remove(jsoutfile)
« 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