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

Don't return concrete error types like httpError, just return error #81

Open
oyvindhagberg opened this issue Jan 23, 2019 · 1 comment

Comments

@oyvindhagberg
Copy link
Contributor

oyvindhagberg commented Jan 23, 2019

In this project, for example, see how *httpError can be mistaken for error here.

Here's a good example on how to make your own error types. Use type assertion to get the custom error type.

@oyvindhagberg
Copy link
Contributor Author

@mapemapemape mapemapemape self-assigned this Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants