Skip to content

Commit

Permalink
added an improvement to show the correct stack trace info for some er…
Browse files Browse the repository at this point in the history
…rors
  • Loading branch information
beatfactor committed Nov 3, 2022
1 parent 2b908cf commit 3b3f450
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/testsuite/context.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class Context extends EventEmitter {
} catch (err) {
const error = new Error(`Error while trying to load ${this.modulePath}`);
error.detailedErr = err.message;
error.stack = err.stack;

throw error;
}
Expand Down

0 comments on commit 3b3f450

Please # to comment.