Skip to content

Commit e8aa5bd

Browse files
committed
Report error when parsing for line number selection
This makes the failure a little less mysterious.
1 parent ac0d75d commit e8aa5bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/reporters/default.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ export default class Reporter {
220220
this.lineNumberErrors.push(event);
221221

222222
this.write(colors.information(`${figures.warning} Could not parse ${this.relativeFile(event.testFile)} for line number selection`));
223+
this.lineWriter.writeLine();
224+
this.lineWriter.writeLine(colors.errorStack(event.err.stack));
225+
this.lineWriter.writeLine();
223226
break;
224227
}
225228

0 commit comments

Comments
 (0)