fix(native): reject signal-terminated command captures (#608)
Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
@@ -223,7 +223,7 @@ const captureProcess = (
|
||||
finish(err(new NativeCommandFailure(tool, reason, code)));
|
||||
return;
|
||||
}
|
||||
if (code !== 0 && options.acceptNonZero !== true) {
|
||||
if (signal !== null || (code !== 0 && options.acceptNonZero !== true)) {
|
||||
finish(err(new NativeCommandFailure(tool, "nonzero-exit", code)));
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user