Skip to content

Commit

Permalink
feat(parser): add classdata to unhandled parse errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iBicha committed Jul 12, 2024
1 parent 0f8f92a commit dbb349d
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 @@ -94,7 +94,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 dbb349d

Please sign in to comment.