Skip to content

Commit

Permalink
fix: πŸ› exit code should be non zero on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
brettswift committed Sep 28, 2022
1 parent 741fe15 commit 7fe7b7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import path = require('path');
import * as cmdTs from 'cmd-ts';
import { StsGateway } from '../lib/gateways/sts-gateway';
import { SsmService } from '../lib/services/ssm-service';
import { exit } from 'process';

export function resolveSsmRootDirectory(namespace: string): string {
if (namespace === 'live') {
Expand Down Expand Up @@ -110,5 +111,6 @@ log.options.debug = true;
} catch (e) {
// Deal with the fact the chain failed
log.info("error", { error: e });
exit(1);
}
})();

0 comments on commit 7fe7b7c

Please sign in to comment.