Skip to content

Commit 6f72067

Browse files
author
Paweł Dymara
committed
also throw on non-0 status codes
1 parent a0baf93 commit 6f72067

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/electron-updater/src/BaseUpdater.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ export abstract class BaseUpdater extends AppUpdater {
130130
if (response.error) {
131131
this._logger.error(response.stderr)
132132
throw response.error
133+
} else if (response.status !== 0) {
134+
this._logger.error(response.stderr)
135+
throw new Error(`Command ${cmd} exited with code ${response.status}`)
133136
}
134137

135138
return response.stdout.trim()

0 commit comments

Comments
 (0)