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

Improve error handling #115

Open
carrieedwards opened this issue Sep 14, 2022 · 0 comments · May be fixed by #116
Open

Improve error handling #115

carrieedwards opened this issue Sep 14, 2022 · 0 comments · May be fixed by #116
Labels
enhancement New feature or request

Comments

@carrieedwards
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Currently, errors are defined in various functions, using errors.New() and fmt.Errorf(), and some errors lack details (such as 'bad type' error not specifying the argument that caused the error). Instead, it would be helpful to create custom error types so that common errors can be grouped and appropriate messages can be used when these errors occur.

Describe the solution you'd like
Create an error package with custom error types that can be used across the codebase, with specific details on why the error is occurring.

@carrieedwards carrieedwards added the enhancement New feature or request label Sep 14, 2022
@carrieedwards carrieedwards linked a pull request Sep 16, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant