Skip to content

Commit bcc1acc

Browse files
authored
Merge pull request microsoft#269660 from mjbvz/dev/mjbvz/huge-junglefowl
Log total error count in eslint failure message
2 parents 96aa43f + 4d2aa9d commit bcc1acc

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)