Skip to content

Commit

Permalink
improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin committed Oct 15, 2024
1 parent 66b3da4 commit aec6771
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/posthog-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1831,7 +1831,8 @@ export class PostHog {
? assignableWindow.__PosthogExtensions__.parseErrorAsProperties(
[error.message, undefined, undefined, undefined, error],
// create synthetic error to get stack in cases where user input does not contain one
// creating the exception at this level makes it easy to strip the 'captureException' frame
// creating the exceptionas soon into our code as possible means we should only have to
// remove a single frame (this 'captureException' method) from the resultant stack
{ syntheticException }
)
: {
Expand Down

0 comments on commit aec6771

Please sign in to comment.