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

Unified Diff: third_party/closure_compiler/checker.py

Issue 780773002: Fix some closure compilation issues 8n order to update compiler.jar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: roll back *.jar Created 6 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
Index: third_party/closure_compiler/checker.py
diff --git a/third_party/closure_compiler/checker.py b/third_party/closure_compiler/checker.py
index a11e64daf95713001cd595b58734eaa519b3c618..4f9cbd5c9bcb2ea0a6a03f25894f0da574221cdc 100755
--- a/third_party/closure_compiler/checker.py
+++ b/third_party/closure_compiler/checker.py
@@ -138,7 +138,7 @@ class Checker(object):
error: A Closure compiler error (2 line string with error and source).
Return:
- The fixed up erorr string (blank if it should be ignored).
+ The fixed up error string (blank if it should be ignored).
"""
if " first declared in " in error:
# Ignore "Variable x first declared in /same/file".
@@ -221,7 +221,8 @@ class Checker(object):
output = self._format_errors(map(self._fix_up_error, errors))
if errors:
- self._error("Error in: %s%s" % (source_file, "\n" + output if output else ""))
+ prefix = "\n" if output else ""
+ self._error("Error in: %s%s%s" % (source_file, prefix, output))
elif output:
self._debug("Output: %s" % output)
« no previous file with comments | « chrome/browser/resources/options/pref_ui.js ('k') | third_party/closure_compiler/externs/chrome_extensions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698