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

Exit code 0 on crash [NOK] #67

Open
4TT1L4 opened this issue Mar 1, 2024 · 1 comment
Open

Exit code 0 on crash [NOK] #67

4TT1L4 opened this issue Mar 1, 2024 · 1 comment
Labels
Bug Something isn't working Priority - Low Issue has low priority and has to be worked on after blocker and high issues T-Shirt size - Small High-Level effort estimation. Category "lowest effort".

Comments

@4TT1L4
Copy link
Contributor

4TT1L4 commented Mar 1, 2024

Problem:

  • When the MMB crashes due to some unexpected error like ERROR: Tries exceeded, given maximum:.... the bot should exit with non-zero exit code. Zero is used for successful execution.

Solution:

  • Make sure to return a non-zero exit code when the bot crashes.

Resources:

Further explanation:

In Linux and Unix-based systems, a successful exit code for an application is typically 0. An exit code, or return code, is a small number passed from a child process (or application) back to the parent process upon completion of its execution. By convention, an exit code of 0 signifies that the program executed successfully without any errors. On the other hand, any non-zero exit code indicates an error or abnormal termination, with different non-zero values potentially signifying different types of errors depending on the application's design.

@4TT1L4 4TT1L4 added Bug Something isn't working Priority - Low Issue has low priority and has to be worked on after blocker and high issues T-Shirt size - Small High-Level effort estimation. Category "lowest effort". labels Mar 1, 2024
@sourabhxyz
Copy link
Member

I simulated a crash and saw 1 as exit code. Is there a reproducible example for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Priority - Low Issue has low priority and has to be worked on after blocker and high issues T-Shirt size - Small High-Level effort estimation. Category "lowest effort".
Projects
None yet
Development

No branches or pull requests

2 participants