Skip to content

Commit

Permalink
Fix another situation where code needs to be changed to exitCode
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-shehane committed Sep 19, 2024
1 parent 56bfb10 commit 154bc01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/driver/src/cy/commands/exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default (Commands, Cypress, cy) => {
consoleOutput['Shell Used'] = result.shell
}

if ((result.code === 0) || !options.failOnNonZeroExit) {
if ((result.exitCode === 0) || !options.failOnNonZeroExit) {
return result
}

Expand All @@ -79,7 +79,7 @@ export default (Commands, Cypress, cy) => {

return $errUtils.throwErrByPath('exec.non_zero_exit', {
onFail: options._log,
args: { cmd, output, code: result.code },
args: { cmd, output, code: result.exitCode },
})
})
.catch(Promise.TimeoutError, { timedOut: true }, () => {
Expand Down

0 comments on commit 154bc01

Please sign in to comment.