Skip to content

Commit

Permalink
better handling
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Oct 16, 2024
1 parent aec6771 commit 64dd93b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/exception-autocapture/error-conversion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function parseStackFrames(ex: Error & { stacktrace?: string }, framesToPo
try {
const frames = defaultStackParser(stacktrace, skipLines)
// frames are reversed so we remove the from the back of the array
return frames.slice(0, -1 * framesToPop)
return frames.slice(0, frames.length - framesToPop)
} catch {
// no-empty
}
Expand Down

0 comments on commit 64dd93b

Please sign in to comment.