We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96aa43f commit 4d2aa9dCopy full SHA for 4d2aa9d
1 file changed
build/eslint.js
@@ -14,7 +14,7 @@ function eslint() {
14
.pipe(
15
eslint((results) => {
16
if (results.warningCount > 0 || results.errorCount > 0) {
17
- throw new Error('eslint failed with warnings and/or errors');
+ throw new Error(`eslint failed with ${results.warningCount + results.errorCount} warnings and/or errors`);
18
}
19
})
20
).pipe(es.through(function () { /* noop, important for the stream to end */ }));
0 commit comments