Improve error message from SetRemoteTargetHandler (#11909)

This commit is contained in:
Poorna Krishnamoorthy
2021-03-26 18:58:13 -07:00
committed by GitHub
parent d8bda2dd92
commit 95096e31a7
3 changed files with 10 additions and 5 deletions

View File

@@ -440,7 +440,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.