Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): ensure fatal errors set process exit code to 1 #842

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

jacott
Copy link
Contributor

@jacott jacott commented Jun 30, 2020

Fixes

cogify cog was detecting job.json version mismatch but was exiting the process with code 0 (success); now exits with code 1.

* Utility error to throw expecting that Logger will fatal log its contents
*/
export class LoggerFatalError extends Error {
obj: object;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason our linter says to use Record<string, unknown> rather than Object I dont know what a object is in terms of typing, I cant ctrl click it to goto its defs

Not too sure the reasoning. but make it a Record<>

@jacott jacott force-pushed the fix/cli/process-exit-code branch from 167b104 to daa6cc9 Compare June 30, 2020 02:02
@jacott jacott requested a review from blacha June 30, 2020 02:02
@kodiakhq kodiakhq bot merged commit f85c274 into master Jun 30, 2020
@kodiakhq kodiakhq bot deleted the fix/cli/process-exit-code branch June 30, 2020 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants