| Index: third_party/closure_compiler/compile.py
|
| diff --git a/third_party/closure_compiler/compile.py b/third_party/closure_compiler/compile.py
|
| index a25b74413181ea30295fe673b6af65c2f4907937..7aba1797495fb44b8a3a4893ebcd8205397a1945 100755
|
| --- a/third_party/closure_compiler/compile.py
|
| +++ b/third_party/closure_compiler/compile.py
|
| @@ -223,15 +223,15 @@ class Checker(object):
|
|
|
| processed_runner_args = ["--%s" % arg for arg in runner_args or []]
|
| processed_runner_args += ["--compiler-args-file=%s" % args_file]
|
| - _, stderr = self._run_jar(self._runner_jar, processed_runner_args)
|
| + return_code, stderr = self._run_jar(self._runner_jar, processed_runner_args)
|
|
|
| errors = stderr.strip().split("\n\n")
|
| maybe_summary = errors.pop()
|
|
|
| - if re.search(".*error.*warning.*typed", maybe_summary):
|
| + if return_code == 0:
|
| self._log_debug("Summary: %s" % maybe_summary)
|
| else:
|
| - # Not a summary. Running the jar failed. Bail.
|
| + # Running the jar failed. Bail.
|
| self._log_error(stderr)
|
| self._nuke_temp_files()
|
| sys.exit(1)
|
|
|