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 the URL to the error message from generic-filehandle #112

Merged
merged 2 commits into from
Apr 16, 2024

Conversation

cmdcolin
Copy link
Collaborator

This modifies the error message returned by generic-filehandle to include the url when using remoteFile. It uses the "cause" field to rethrow the original error to try to preserve the error integrity/stack trace (see cause here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Error)

@cmdcolin
Copy link
Collaborator Author

aims to help perhaps #72 by at least saying what url caused the error when encountering a "TypeError: failed to fetch"

@cmdcolin cmdcolin merged commit ea215c5 into master Apr 16, 2024
1 check passed
@cmdcolin cmdcolin deleted the fetch_error_catcher_url branch April 16, 2024 13:58
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

Successfully merging this pull request may close these issues.

1 participant