improve error message when remote target missing (#10412)

This commit is contained in:
poornas
2020-09-04 08:48:38 -07:00
committed by GitHub
parent fbd1c5f51a
commit 0037951b6e
3 changed files with 21 additions and 5 deletions

View File

@@ -376,6 +376,13 @@ func (e BucketRemoteTargetNotFound) Error() string {
return "Remote target not found: " + e.Bucket
}
// BucketRemoteConnectionErr remote target connection failure.
type BucketRemoteConnectionErr GenericError
func (e BucketRemoteConnectionErr) Error() string {
return "Remote service endpoint or target bucket not available: " + e.Bucket
}
// BucketRemoteAlreadyExists remote already exists for this target type.
type BucketRemoteAlreadyExists GenericError