Commit 1ef794a 1 parent b709f2b commit 1ef794a Copy full SHA for 1ef794a
File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ export class ProcessPromise extends Promise<ProcessOutput> {
324
324
if ( stdout . length && getLast ( getLast ( stdout ) ) !== BR_CC ) c . on . stdout ! ( EOL , c )
325
325
if ( stderr . length && getLast ( getLast ( stderr ) ) !== BR_CC ) c . on . stderr ! ( EOL , c )
326
326
327
- if ( error || status !== 0 && ! self . isNothrow ( ) ) {
327
+ if ( ! output . ok && ! self . isNothrow ( ) ) {
328
328
self . _stage = 'rejected'
329
329
self . _reject ( output )
330
330
} else {
@@ -736,6 +736,10 @@ export class ProcessOutput extends Error {
736
736
return 'ProcessOutput'
737
737
}
738
738
739
+ get ok ( ) : boolean {
740
+ return ! this . _dto . error && this . exitCode === 0
741
+ }
742
+
739
743
[ Symbol . toPrimitive ] ( ) : string {
740
744
return this . valueOf ( )
741
745
}
You can’t perform that action at this time.
0 commit comments