Recently, I switched most tasks to throw exceptions to indicate errors, and modified the runner to ignore the return codes. Unfortunately, old tasks may still return error codes; therefore, I need to support both.
Steps to Reproduce
Write a task that return error code as opposed to throw exception.
Run the task through bolt.
The exit code still 0 when it should indicate that the task failed.
Acceptance Criteria
Bolt supports both error reporting through exceptions and return codes.
Description
Recently, I switched most tasks to throw exceptions to indicate errors, and modified the runner to ignore the return codes. Unfortunately, old tasks may still return error codes; therefore, I need to support both.
Steps to Reproduce
The exit code still
0
when it should indicate that the task failed.Acceptance Criteria
Bolt supports both error reporting through exceptions and return codes.