From 1e94228dc08fcdadb916bfa67e2fb2514d2e0737 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Fri, 30 Oct 2026 13:14:07 +0100 Subject: [PATCH] fix: throw when 'docker run' fails (#1088) Co-authored-by: Claude Opus 5.5 --- src/renovate.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renovate.ts b/src/renovate.ts index af7b7f9e..a0484b3d 100644 --- a/src/renovate.ts +++ b/src/renovate.ts @@ -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}.`); } }