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

gen: type-safe rpc errors #134

Closed
ernado opened this issue Jan 30, 2021 · 0 comments · Fixed by #137
Closed

gen: type-safe rpc errors #134

ernado opened this issue Jan 30, 2021 · 0 comments · Fixed by #137
Labels
area: gen Codegen issues

Comments

@ernado
Copy link
Member

ernado commented Jan 30, 2021

Currently, documentation contains information about possible errors.

We should generate code for them to reduce hard-coding things like comparing error type to "STATS_MIGRATE".

Probably we can even do following:

if tg.IsStatsMigrate(err) {
    // ...
}
@ernado ernado added the area: gen Codegen issues label Jan 30, 2021
ernado added a commit that referenced this issue Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: gen Codegen issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant