Skip to content

Commit

Permalink
fix: handle rejection promise (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Jul 2, 2023
1 parent 6db2a6f commit d6d5337
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bin/codecept-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if (!existsSync(AppDir)) {

codeceptjsFactory.create({}, options).then(() => {
debug('CodeceptJS initialized, starting application');

const api = require('../lib/api');
const app = express();

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

}).catch((e) => {
console.error(e.message);
process.exit(1);
});




0 comments on commit d6d5337

Please sign in to comment.