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

Expose error handling #6

Open
Gavinok opened this issue Jan 31, 2023 · 4 comments
Open

Expose error handling #6

Gavinok opened this issue Jan 31, 2023 · 4 comments

Comments

@Gavinok
Copy link

Gavinok commented Jan 31, 2023

While I understand adding a try catch to all initiations of fetch is a bit of a pain why not add a fetch' or something that will catch errors like ERR_CONNECTION_REFUSED and the response can be an Aff Maybe ...

@i-am-the-slime
Copy link
Member

Wouldn't an Either give you more information here?

@Gavinok
Copy link
Author

Gavinok commented May 9, 2023

Ya that would be good as well

@Gavinok
Copy link
Author

Gavinok commented Jul 18, 2023

@i-am-the-slime is it possible to wrap this to return an Either?

@i-am-the-slime
Copy link
Member

@Gavinok sorry for the late response. Let me know when you want to pair on this!

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

2 participants