Skip to content

Commit

Permalink
updated cucumber error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
beatfactor committed Oct 28, 2021
1 parent ee50448 commit b6beec0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/runner/test-runners/cucumber.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,12 @@ class CucumberSuite extends TestSuite {
this.createCucumberCli();
} catch (err) {
const {message} = err;
err.message = 'An error occurred while trying to initialize the Cucumber runner:';
err.detailedErr = message;

if (!err.detailedErr) {
err.detailedErr = message;
err.message = 'An error occurred while trying to initialize the Cucumber runner:';
}

err.sessionCreate = true;

Logger.error(err);
Expand Down

0 comments on commit b6beec0

Please sign in to comment.