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

Specify error code #573

Merged
merged 4 commits into from
Dec 11, 2024
Merged

Specify error code #573

merged 4 commits into from
Dec 11, 2024

Conversation

juli1
Copy link
Collaborator

@juli1 juli1 commented Dec 11, 2024

What problem are you trying to solve?

We want to distinguish each error case so that we can surface in the datadog UI why a run failed.

What is your solution?

Put a specific exit code for each failure.

  • User-specific failures are more than 50
  • Program failures are less than 50

@juli1 juli1 requested review from jasonforal and jacobotb December 11, 2024 18:02
@juli1 juli1 requested a review from a team as a code owner December 11, 2024 18:02
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need that many exit statuses; just two: one for "the error is in the data" and another for "the error is in the program". More codes just make it more complicated.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Anything more than 50 is user, lower is specific to the program itself

@juli1 juli1 requested a review from jacobotb December 11, 2024 18:45
@juli1 juli1 merged commit 08c55cf into main Dec 11, 2024
71 checks passed
@juli1 juli1 deleted the juli1/specify-error-code branch December 11, 2024 19:28
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.

2 participants