Skip to content

Commit

Permalink
Cleanup CLI flow setup
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Jun 28, 2019
1 parent 25fe373 commit a607d83
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions bin/serverless.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const invocationId = uuid.v4();
return serverless
.init()
.then(() => serverless.run())
.then(() => process.exit(0))
.catch(err => {
// If Enterprise Plugin, capture error
let enterpriseErrorHandler = null;
Expand All @@ -63,7 +62,10 @@ const invocationId = uuid.v4();
});
});
})
.catch(e => {
process.exitCode = 1;
logError(e);
}))();
.then(
() => process.exit(0),
e => {
process.exitCode = 1;
logError(e);
}
))();

0 comments on commit a607d83

Please sign in to comment.