Skip to content

Commit 4d2aa9d

Browse files
committed
Log total error count in eslint failure message
1 parent 96aa43f commit 4d2aa9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function eslint() {
1414
.pipe(
1515
eslint((results) => {
1616
if (results.warningCount > 0 || results.errorCount > 0) {
17-
throw new Error('eslint failed with warnings and/or errors');
17+
throw new Error(`eslint failed with ${results.warningCount + results.errorCount} warnings and/or errors`);
1818
}
1919
})
2020
).pipe(es.through(function () { /* noop, important for the stream to end */ }));

0 commit comments

Comments
 (0)