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

Return errors instead of panics when something goes wrong #105

Merged
merged 4 commits into from
Jul 10, 2023

Conversation

spinillos
Copy link
Member

@spinillos spinillos commented Jun 30, 2023

Contributes to: #104

It return errors instead of panics when we found a undesired result. All error messages include (if possible) the name of the field that causes the error.

@spinillos spinillos marked this pull request as draft June 30, 2023 15:28
@spinillos spinillos marked this pull request as ready for review July 7, 2023 11:25
Copy link
Contributor

@sdboyer sdboyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! thanks for doing this. Just one message to change a bit

generator.go Outdated Show resolved Hide resolved
Co-authored-by: sam boyer <sdboyer@grafana.com>
Copy link

@undef1nd undef1nd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🎉

@spinillos spinillos merged commit f7f3d2e into main Jul 10, 2023
@spinillos spinillos deleted the remove-panics branch July 10, 2023 15:49
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.

3 participants