mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-07 04:21:11 +00:00
fix: incorrect return codes when exit with error (#798)
Co-authored-by: Anton Kozachuk <antonkozachuk@Antons-MacBook-Pro.local>
This commit is contained in:
@@ -189,9 +189,10 @@ export function handleError(e: Error, ref: string) {
|
||||
);
|
||||
} else {
|
||||
process.stderr.write(`Something went wrong when processing ${ref}:\n\n - ${e.message}.\n\n`);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
process.exitCode = 1;
|
||||
throw e;
|
||||
}
|
||||
|
||||
export function printLintTotals(totals: Totals, definitionsCount: number) {
|
||||
|
||||
Reference in New Issue
Block a user