mirror of
https://github.com/microsoft/vscode.git
synced 2026-01-09 06:31:23 +08:00
Log total error count in eslint failure message
This commit is contained in:
parent
96aa43fe7a
commit
4d2aa9d1f0
@ -14,7 +14,7 @@ function eslint() {
|
||||
.pipe(
|
||||
eslint((results) => {
|
||||
if (results.warningCount > 0 || results.errorCount > 0) {
|
||||
throw new Error('eslint failed with warnings and/or errors');
|
||||
throw new Error(`eslint failed with ${results.warningCount + results.errorCount} warnings and/or errors`);
|
||||
}
|
||||
})
|
||||
).pipe(es.through(function () { /* noop, important for the stream to end */ }));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user