Skip to content

Commit 968d4ed

Browse files
committed
Default to exit code 0
1 parent e0800f0 commit 968d4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/integrations/terminal/ExecaTerminalProcess.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class ExecaTerminalProcess extends BaseTerminalProcess {
6060
} catch (error) {
6161
if (error instanceof ExecaError) {
6262
console.error(`[ExecaTerminalProcess] shell execution error: ${error.message}`)
63-
this.emit("shell_execution_complete", { exitCode: error.exitCode ?? 1, signalName: error.signal })
63+
this.emit("shell_execution_complete", { exitCode: error.exitCode ?? 0, signalName: error.signal })
6464
} else {
6565
this.emit("shell_execution_complete", { exitCode: 1 })
6666
}

0 commit comments

Comments
 (0)