From dcc2a9d077610d969963293072730a16039845dd Mon Sep 17 00:00:00 2001 From: Brendan Myers <6362494+BearHanded@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:49:19 -0400 Subject: [PATCH] Deploy Runner - handle Serverless Compose errors (#8) --- src/runner.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runner.ts b/src/runner.ts index 03215405..68336d34 100644 --- a/src/runner.ts +++ b/src/runner.ts @@ -103,6 +103,10 @@ export default class LabeledProcessRunner { proc.on("close", (code) => { const paddedPrefix = this.formattedPrefix(prefix); process.stdout.write(`${paddedPrefix} Exit: ${code}\n`); + if (code != 0) { + reject(code); + return; + } resolve(); }); });