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 abstract errors in Golang #490

Merged
merged 1 commit into from
May 16, 2024

Conversation

mristin
Copy link
Contributor

@mristin mristin commented May 16, 2024

We returned a concrete error pointer in the generated Golang code, which can cause various bugs, see this page in Golang documentation.

Instead, we generate the code such that only abstract error's are returned.

We returned a concrete error pointer in the generated Golang code, which
can cause various bugs, see [this page in Golang documentation].

Instead, we generate the code such that only abstract `error`'s are
returned.

[this page in Golang documentation]: https://go.dev/doc/faq#nil_error
@mristin mristin force-pushed the mristin/Return-abstract-errors-in-Golang branch from ce38ac4 to 5c17d5e Compare May 16, 2024 16:34
@mristin mristin merged commit 6e15812 into main May 16, 2024
8 checks passed
@mristin mristin deleted the mristin/Return-abstract-errors-in-Golang branch May 16, 2024 16:42
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