-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Enhance code for issue 6297 #6326
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6326 +/- ##
==========================================
+ Coverage 40.97% 42.94% +1.96%
==========================================
Files 255 222 -33
Lines 23833 22664 -1169
==========================================
- Hits 9766 9733 -33
+ Misses 13305 12168 -1137
- Partials 762 763 +1
|
pkg/repository/config/aws.go
Outdated
if requestErrs == nil { | ||
return "", errors.New("unable to determine bucket's region") | ||
} else { | ||
return "", goerr.Join(requestErrs...) |
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.
would be helpful to make the error more friendly like appending the bucket to the error message,
for each request error, append the regionhint <- not sure if this is helpful...
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.
Done
Please update the title of the PR and commit since this will not fix the particular issue, but only helps debugging the problem. |
Signed-off-by: Lyndon-Li <[email protected]>
Enhance the code because of #6297, the return value of
GetBucketRegion
is not recorded, as a result, when it fails, we have no way to get the cause.