-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Info from Hooks.onError
getting lost
#76
Comments
LibWrapper wraps Hooks.onError to add the list of affected packages to the error. This is probably a bug with that piece of code. I'll take a look once I'm back home on Monday. Thanks for the report, I was unaware of this difference in behaviour! |
This seems to occur in Chrome anytime something causes the error to generate the corresponding stack message (in the Chrome delays generating the stack trace until someone reads it. LibWrapper reads this property to parse the package list, causing the stack to be generated before the You can reproduce this without libWrapper by setting a breakpoint in the Firefox instead implements I'll see if I can implement a workaround to avoid libWrapper causing it, but technically it is not a libWrapper bug, just a limitation of how Javascript exception messages are handled by Chrome. |
Workaround added in v1.12.12.0. The message now shows correctly on both Chrome/Chromium and Firefox. Closing issue. |
Describe the bug
Having libWrapper active changes contents of errors logged via
Hooks.onError
, leading to error information being removed.To Reproduce
Run the following snippet in a console:
Expected behavior

The expected error message by default Foundry looks like this (i.e. includes the
msg
given toHooks.onError
):Screenshots

The error with libWrapper active looks like this:
Technical Details (please complete the following information):
1.12.11.0
10.291
Chrome 108
The text was updated successfully, but these errors were encountered: