Skip to content

Commit

Permalink
Report error when parsing for line number selection
Browse files Browse the repository at this point in the history
This makes the failure a little less mysterious.
  • Loading branch information
novemberborn committed Jul 10, 2022
1 parent ac0d75d commit e8aa5bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/reporters/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ export default class Reporter {
this.lineNumberErrors.push(event);

this.write(colors.information(`${figures.warning} Could not parse ${this.relativeFile(event.testFile)} for line number selection`));
this.lineWriter.writeLine();
this.lineWriter.writeLine(colors.errorStack(event.err.stack));
this.lineWriter.writeLine();
break;
}

Expand Down

0 comments on commit e8aa5bd

Please sign in to comment.