Skip to content

Commit d6d5337

Browse files
authored
fix: handle rejection promise (#219)
1 parent 6db2a6f commit d6d5337

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

bin/codecept-ui.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if (!existsSync(AppDir)) {
2121

2222
codeceptjsFactory.create({}, options).then(() => {
2323
debug('CodeceptJS initialized, starting application');
24-
24+
2525
const api = require('../lib/api');
2626
const app = express();
2727

@@ -71,8 +71,7 @@ codeceptjsFactory.create({}, options).then(() => {
7171
require('../lib/commands/electron');
7272
}
7373

74+
}).catch((e) => {
75+
console.error(e.message);
76+
process.exit(1);
7477
});
75-
76-
77-
78-

0 commit comments

Comments
 (0)