diff --git a/src/index.ts b/src/index.ts index 60d053b..cc7bf26 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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;