fix: incorrect return codes when exit with error (#798)

Co-authored-by: Anton Kozachuk <antonkozachuk@Antons-MacBook-Pro.local>
This commit is contained in:
Anton Kozachuk
2022-08-08 18:16:14 +03:00
committed by GitHub
parent f298ca69ba
commit 0b7aec96f0
5 changed files with 55 additions and 5 deletions

View File

@@ -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) {