Skip to content

Exit code 0 on crash [NOK] #67

@4TT1L4

Description

@4TT1L4

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingPriority - LowIssue has low priority and has to be worked on after blocker and high issuesT-Shirt size - SmallHigh-Level effort estimation. Category "lowest effort".

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions