fix(scully): make sure scully emits non-zero exit code on errors#115
fix(scully): make sure scully emits non-zero exit code on errors#115aaronfrost merged 1 commit intoscullyio:masterfrom
Conversation
75bd225 to
f0b1ada
Compare
|
@beeman Thanks for the PR. Can you change to |
f0b1ada to
069094d
Compare
|
@SanderElias just updated the PR to emit |
|
@beeman what does a non-zero exit code do? I want to learn. Please teach me. |
|
@aaronfrost this is relevant when we want to automate stuff, emitting a non-zero exit code from a child process will instruct the parent process to halt as something failed. This is useful when you want to automate things in for instance a CI setup. There we want to execute all the steps, but we only want to continue with the next step if the current one successfully exits. This is an example of |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Currently scully always emits a
0as exit code, even when it fails. Emitting a non-zero exit code is essential if you want to use scully in an automated process, as it will halt the process if something fails - currently it just continues.What is the new behavior?
Emit exit code 5 (Fatal exception) when something fails.
Does this PR introduce a breaking change?
Other information