Skip to content

Commit 233999e

Browse files
properly exit as error when failing Sandbox creation
1 parent 99d38d5 commit 233999e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bin/commands/build.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,14 @@ export const buildCommand: yargs.CommandModule<
388388
`Alias ${alias.namespace}@${alias.alias} updated to: ${templateData.tag}`
389389
);
390390
process.exit(0);
391-
return;
392391
}
393392

394393
console.log("Template created: " + templateData.tag);
394+
395+
if (argv.ci && failedSandboxes.length > 0) {
396+
process.exit(1);
397+
}
398+
395399
process.exit(0);
396400
} catch (error) {
397401
console.error(error);

0 commit comments

Comments
 (0)