-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
fix: more expressive errors #22612
fix: more expressive errors #22612
Conversation
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.
LGTM overall but needs some import cleanup
http/errors_test.go
Outdated
@@ -4,6 +4,7 @@ import ( | |||
"context" | |||
"encoding/json" | |||
stderrors "errors" | |||
"go.uber.org/zap/zaptest" |
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.
Needs reformatted?
@@ -3,6 +3,7 @@ package legacy | |||
import ( | |||
"context" | |||
"fmt" | |||
"go.uber.org/zap/zaptest" |
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.
Same here
http/legacy/write_handler_test.go
Outdated
@@ -3,6 +3,7 @@ package legacy | |||
import ( | |||
"context" | |||
"fmt" | |||
"go.uber.org/zap" |
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.
And here
kit/transport/http/error_handler.go
Outdated
@@ -6,6 +6,7 @@ import ( | |||
"encoding/json" | |||
"errors" | |||
"fmt" | |||
"go.uber.org/zap" |
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.
And here
@@ -3,6 +3,7 @@ package http_test | |||
import ( | |||
"context" | |||
"fmt" | |||
"go.uber.org/zap/zaptest" |
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.
Last one
Ideally we'd run the formatting we want in the linter... |
Closes #22449