-
Notifications
You must be signed in to change notification settings - Fork 208
Return filestore.ErrNotFound when object not found #1388
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
Conversation
pkg/filestore/minio/minio.go
Outdated
| if errRes.StatusCode == http.StatusNotFound { | ||
| err = filestore.ErrNotFound | ||
| } | ||
| s.logger.Error("failed to create minio object reader", zap.String("path", path), zap.Error(err)) |
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.
nit: It would be great if it could be followed our style where must be indented if multiple args given:
s.logger.Error("failed to create minio object reader",
zap.String("path", path),
zap.Error(err),
)Co-authored-by: Le Van Nghia <[email protected]>
|
Thank you. |
|
The following files are not gofmt-ed. By commenting pkg/filestore/minio/minio.go--- pkg/filestore/minio/minio.go.orig
+++ pkg/filestore/minio/minio.go
@@ -106,7 +106,7 @@
if e.StatusCode == http.StatusNotFound {
err = filestore.ErrNotFound
}
- s.logger.Error("failed to stat minio object",
+ s.logger.Error("failed to stat minio object",
zap.String("path", path),
zap.Error(err),
)
|
|
/golinter fmt |
|
/approve |
Co-authored-by: Le Van Nghia <[email protected]>
|
/approve |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #1309
Does this PR introduce a user-facing change?: