Skip to content
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

Add error.cause property to errors which originate from an underlying host error #657

Open
JakeChampion opened this issue Sep 13, 2023 · 0 comments

Comments

@JakeChampion
Copy link
Contributor

For example, a fetch request may fail for a number of reasons, we can surface our own generic reason as well as the underlying reason if we use error.cause

JS_ReportErrorUTF8(cx, "NetworkError when attempting to fetch resource.");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant