mirror of
https://github.com/renovatebot/github-action.git
synced 2026-12-02 03:20:28 +00:00
fix: throw when 'docker run' fails (#1088)
Co-authored-by: Claude Opus 5.5 <michael.kriese+claude-code@mend.io>
This commit is contained in:
1 parent
fd404037ec
commit
1e94228dc0
1 file changed
+2
-2
+2
-2
@@ -19,7 +19,7 @@ export class Renovate {
|
||||
|
||||
const { exitCode, stdout } = await getExecOutput(command);
|
||||
if (exitCode !== 0) {
|
||||
new Error(`'docker run' failed with exit code ${exitCode}.`);
|
||||
throw new Error(`'docker run' failed with exit code ${exitCode}.`);
|
||||
}
|
||||
|
||||
return stdout.trim();
|
||||
@@ -93,7 +93,7 @@ export class Renovate {
|
||||
|
||||
const code = await exec(command);
|
||||
if (code !== 0) {
|
||||
new Error(`'docker run' failed with exit code ${code}.`);
|
||||
throw new Error(`'docker run' failed with exit code ${code}.`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user