oxlint-harness 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/command.js +3 -2
- package/package.json +1 -1
package/dist/command.js
CHANGED
|
@@ -258,11 +258,12 @@ The suppression file format uses counts per rule per file:
|
|
|
258
258
|
const reporter = new ErrorReporter();
|
|
259
259
|
reporter.reportExcessErrors(excessErrors, flags["show-code"]);
|
|
260
260
|
if (flags["fail-on-excess"]) {
|
|
261
|
-
|
|
261
|
+
process.exit(1);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
catch (error) {
|
|
265
|
-
this.
|
|
265
|
+
this.logToStderr(error instanceof Error ? error.message : String(error));
|
|
266
|
+
process.exit(2);
|
|
266
267
|
}
|
|
267
268
|
}
|
|
268
269
|
async saveResults(path, diagnostics) {
|