aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-19 20:35:55 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-19 20:35:55 -0800
commitca9cbdb7c5b72b12439686f5bf56d939a6001311 (patch)
treea4c1c70feea3ec52bae8b976e22fdabe3f2273da /tools
parent05b14137c17f1706ad4716226a4e12e056feb3a0 (diff)
better closure compiler error reporting
Diffstat (limited to 'tools')
-rw-r--r--tools/shared.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/shared.py b/tools/shared.py
index 1366f6fd..4e87269b 100644
--- a/tools/shared.py
+++ b/tools/shared.py
@@ -597,8 +597,8 @@ class Building:
#'--formatting', 'PRETTY_PRINT',
#'--variable_map_output_file', filename + '.vars',
'--js', filename, '--js_output_file', filename + '.cc.js'], stdout=PIPE, stderr=STDOUT).communicate()[0]
- if 'ERROR' in cc_output:
- raise Exception('Error in cc output: ' + cc_output)
+ if 'ERROR' in cc_output or not os.path.exists(filename + '.cc.js'):
+ raise Exception('closure compiler error: ' + cc_output)
return filename + '.cc.js'