mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
add Err to Get getRemoteTargetClient. (#16982)
This commit is contained in:
parent
2c85b84cbc
commit
67d2cf8f30
@ -208,7 +208,7 @@ func (sys *BucketTargetSys) SetTarget(ctx context.Context, bucket string, tgt *m
|
||||
}
|
||||
clnt, err := sys.getRemoteTargetClient(tgt)
|
||||
if err != nil {
|
||||
return BucketRemoteTargetNotFound{Bucket: tgt.TargetBucket}
|
||||
return BucketRemoteTargetNotFound{Bucket: tgt.TargetBucket, Err: err}
|
||||
}
|
||||
// validate if target credentials are ok
|
||||
exists, err := clnt.BucketExists(ctx, tgt.TargetBucket)
|
||||
|
Loading…
Reference in New Issue
Block a user