Skip to content

Commit

Permalink
Restore check for deserialized exitCode
Browse files Browse the repository at this point in the history
  • Loading branch information
oddsund committed Jan 2, 2023
1 parent e3e5e84 commit 207720b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/types/privatekubectl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ export class PrivateKubectl extends Kubectl {
runOutput.stdout
)
if (!silent) core.info(runObj.logs)
if (runObj.exitCode !== 0) {
throw Error(`failed private cluster Kubectl command: ${kubectlCmd}`)
}

return {
exitCode: runObj.exitCode,
Expand Down

0 comments on commit 207720b

Please sign in to comment.