feat(parser): add classdata to unhandled parse errors (#691)

This commit is contained in:
Brahim Hadriche
2024-07-24 14:55:20 -04:00
committed by GitHub
parent 6d0bc89be1
commit 090539b28f

View File

@@ -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)
}
)
);