Skip to content

Commit

Permalink
fix: Make init func error caughtable
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Nov 8, 2017
1 parent 4e1534f commit d128be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class App extends EventEmitter {
await initFunc();
}
} catch (err) {
console.error(err);
console.error(`Boomer init fail...`);
this.emit(EVENT_ON_ERROR, err);
process.exit(1);
}
this.bootstrap();
Expand Down

0 comments on commit d128be9

Please sign in to comment.