Skip to content
Browse files

log failure message of each file to error so it is better readable (as

it is highlighted in Ant display as red)
  • Loading branch information...
1 parent d67fafb commit 9648b8a5471173e7b66e02cc3e3d85f0da124082 @codecop codecop committed Jul 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/philmander/jshint/JsHintRunner.java
View
4 src/main/java/com/philmander/jshint/JsHintRunner.java
@@ -91,7 +91,7 @@ public void error(String msg) {
JsHintReport report = runner.lint(files.toArray(new String[files.size()]), optionsProps, globalsProps);
if (report.getTotalErrors() > 0) {
- logger.log(PlainJsHintReporter.getFailureMessage(report.getTotalErrors()));
+ logger.error(PlainJsHintReporter.getFailureMessage(report.getTotalErrors()));
} else {
logger.log(PlainJsHintReporter.getSuccessMessage(report.getNumFiles()));
}
@@ -217,7 +217,7 @@ public JsHintReport lint(String[] files, Map<Object, Object> options, Map<Object
if (numErrors > 0) {
if (logger != null) {
- logger.log(PlainJsHintReporter.getFileFailureMessage(jsFileName));
+ logger.error(PlainJsHintReporter.getFileFailureMessage(jsFileName));
}
}
for (int i = 0; i < numErrors; i++) {

0 comments on commit 9648b8a

Please sign in to comment.
Something went wrong with that request. Please try again.