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

Unified Diff: third_party/closure_compiler/compile.py

Issue 2273923002: Revert of Fix Closure Compiler's compile.py error checking to match compile2.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | third_party/closure_compiler/compile2.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/compile.py
diff --git a/third_party/closure_compiler/compile.py b/third_party/closure_compiler/compile.py
index 7aba1797495fb44b8a3a4893ebcd8205397a1945..a25b74413181ea30295fe673b6af65c2f4907937 100755
--- a/third_party/closure_compiler/compile.py
+++ b/third_party/closure_compiler/compile.py
@@ -223,15 +223,15 @@
processed_runner_args = ["--%s" % arg for arg in runner_args or []]
processed_runner_args += ["--compiler-args-file=%s" % args_file]
- return_code, stderr = self._run_jar(self._runner_jar, processed_runner_args)
+ _, stderr = self._run_jar(self._runner_jar, processed_runner_args)
errors = stderr.strip().split("\n\n")
maybe_summary = errors.pop()
- if return_code == 0:
+ if re.search(".*error.*warning.*typed", maybe_summary):
self._log_debug("Summary: %s" % maybe_summary)
else:
- # Running the jar failed. Bail.
+ # Not a summary. Running the jar failed. Bail.
self._log_error(stderr)
self._nuke_temp_files()
sys.exit(1)
« no previous file with comments | « no previous file | third_party/closure_compiler/compile2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698