Skip to content

Exit 2 on FATAL marketplace validations #565

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

Merged
merged 1 commit into from
Oct 1, 2021
Merged

Conversation

KatzMitch
Copy link
Contributor

Description and Context

This PR updates the exit code to 2 (instead of 1) when the CLI has FATAL validation warnings. This will allow us to determine on the BE caller whether we are exiting because of a validation failure or because of an internal error of some other sort

Screenshots

Before
Screen Shot 2021-09-24 at 10 40 35 AM

After
Screen Shot 2021-09-24 at 10 39 53 AM

TODO

n/a

Who to Notify

n/a

@gcorne
Copy link
Contributor

gcorne commented Sep 24, 2021

We should do the same in https://github.com/HubSpot/hubspot-cli/blob/master/packages/cli/commands/lint.js#L60. I also think it would be valuable to start using named constants for the exit codes to help with understandability but that is probably a good followup for someone working day-to-day on the CLI.

@brandenrodgers
Copy link
Contributor

brandenrodgers commented Oct 1, 2021

start using named constants for the exit codes to help with understandability

I can follow this PR up with something like this 👍

@KatzMitch this is OK to merge

@KatzMitch KatzMitch merged commit a7ab4ae into master Oct 1, 2021
@KatzMitch KatzMitch deleted the exit_2_fatal_validation branch October 1, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants