-
Notifications
You must be signed in to change notification settings - Fork 163
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
Use serrors.New instead of common.NewBasicError #3175
Use serrors.New instead of common.NewBasicError #3175
Conversation
14e65a1
to
8a4477c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 165 of 165 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @lukedirtwalker)
go/lib/infra/modules/itopo/itopo.go.orig, line 1 at r1 (raw file):
// Copyright 2018 ETH Zurich
remove
go/proto/cert_mgmt.capnp.go, line 7 at r1 (raw file):
import ( strconv "strconv"
ha, why does this differ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @oncilla)
go/lib/infra/modules/itopo/itopo.go.orig, line 1 at r1 (raw file):
Previously, Oncilla wrote…
remove
Done.
go/proto/cert_mgmt.capnp.go, line 7 at r1 (raw file):
Previously, Oncilla wrote…
ha, why does this differ?
I don't know, but it seems to be needed. otherwise the build fails :man-shrugging: ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 9 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
go/proto/cert_mgmt.capnp.go, line 7 at r1 (raw file):
Previously, lukedirtwalker (Lukas Vogel) wrote…
I don't know, but it seems to be needed. otherwise the build fails :man-shrugging: ?
what build fails?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 9 files at r2.
Reviewable status: complete! all files reviewed, all discussions resolved
go/proto/cert_mgmt.capnp.go, line 7 at r1 (raw file):
Previously, Oncilla wrote…
what build fails?
Ah, we check that stuff is consistent in CI.
My question was rather, why did it change in your version. Maybe you use a different version of capnp genrerator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! all files reviewed, all discussions resolved
for simple errors without additional wrapping/context. This PR was generated by replacing `common.NewBasicError\(("[^"]+"), nil\)` with `serrors.New($1)` and running goimports afterwards.
4b73098
to
4945f05
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 4 of 4 files at r3.
Reviewable status: complete! all files reviewed, all discussions resolved
for simple errors without additional wrapping/context.
This PR was generated by replacing
common.NewBasicError\(("[^"]+"), nil\)
with
serrors.New($1)
and running goimports afterwards.This change is