Skip to content

Commit

Permalink
feat(parser): add classdata to unhandled parse errors (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Jul 24, 2024
1 parent 6d0bc89 commit 090539b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/parser/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ let ERROR_HANDLER: ParserErrorHandler = ({ classname, ...context }: ParserError)
new InnertubeError(
`Something went wrong at ${classname}!\n` +
`This is a bug, please report it at ${Platform.shim.info.bugs_url}`, {
stack: context.error.stack
stack: context.error.stack,
classdata: JSON.stringify(context.classdata, null, 2)
}
)
);
Expand Down

0 comments on commit 090539b

Please sign in to comment.