Skip to content
This repository was archived by the owner on Jan 14, 2026. It is now read-only.

Commit 97cc779

Browse files
committed
Exit with code 1 on error
1 parent 314ad28 commit 97cc779

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deployment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ async function createDeployment(options) {
1414
console.log(result.status == 201 ? 'Done': 'Error');
1515
if(result.status != 201) {
1616
console.error(result);
17+
process.exit(1);
1718
}
1819
}
1920

@@ -28,9 +29,11 @@ async function createDeploymentStatus(options) {
2829
console.log(result.status == 201 ? 'Done' : 'Error');
2930
if (result.status != 201) {
3031
console.error(result);
32+
process.exit(1);
3133
}
3234
} catch(e) {
3335
console.error(e);
36+
process.exit(1);
3437
}
3538
}
3639

0 commit comments

Comments
 (0)