sindresorhus / nano-spawn

Tiny process execution for humans — a better child_process
MIT License
441 stars 6 forks source link

Reject the promise on non-0 exit code #8

Closed ehmicky closed 2 months ago

ehmicky commented 2 months ago

If either result.exitCode is non-0 or result.signalName is undefined, the promise should be rejected.

We should also make sure result.exitCode and result.signalName are never null (as opposed to undefined).