Improve error message from SetRemoteTargetHandler (#11909)

This commit is contained in:
Poorna Krishnamoorthy
2021-03-26 18:58:13 -07:00
committed by Harshavardhana
parent 94018588fe
commit bfab990c33
3 changed files with 10 additions and 5 deletions

View File

@@ -426,7 +426,7 @@ func (e BucketRemoteTargetNotFound) Error() string {
type BucketRemoteConnectionErr GenericError
func (e BucketRemoteConnectionErr) Error() string {
return "Remote service endpoint or target bucket not available: " + e.Bucket
return fmt.Sprintf("Remote service endpoint or target bucket not available: %s \n\t%s", e.Bucket, e.Err.Error())
}
// BucketRemoteAlreadyExists remote already exists for this target type.