| 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)
|
|
|
|
|