Skip to content

Commit

Permalink
Merge pull request #2 from tommywilkinson/patch-1
Browse files Browse the repository at this point in the history
Reuse computed module info
  • Loading branch information
robpaveza authored Apr 30, 2024
2 parents fb925b1 + 1232c25 commit ca9b48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function prepareStackTraceWithSourceModules(error: Error, frames: CallSite[]): s

const moduleInformation = collectModuleInformation(frames);
if (moduleInformation) {
return originalStack + '\n' + collectModuleInformation(frames);
return originalStack + '\n' + moduleInformation;
}

return originalStack;
Expand Down

0 comments on commit ca9b48a

Please sign in to comment.