Skip to content

Commit

Permalink
Deploy Runner - handle Serverless Compose errors (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
BearHanded authored Jul 9, 2024
1 parent 6e98306 commit dcc2a9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
});
Expand Down

0 comments on commit dcc2a9d

Please sign in to comment.