We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40c75aa commit 112247cCopy full SHA for 112247c
src/node/jsShell.ts
@@ -100,11 +100,11 @@ export function jsShell<T extends string | string[]>(
100
if (isLog)
101
console.error(`Command failed with status ${status}`)
102
if (errorExit) {
103
- reject(new Error(errorOutput || result))
+ reject(new Error(result || errorOutput))
104
process.exit(1)
105
}
106
else {
107
- resolve({ status, result: errorOutput || result, pid })
+ resolve({ status, result: result || errorOutput, pid })
108
109
110
0 commit comments