mirror of
https://github.com/minio/minio.git
synced 2025-01-11 23:13:23 -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)
|
clnt, err := sys.getRemoteTargetClient(tgt)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return BucketRemoteTargetNotFound{Bucket: tgt.TargetBucket}
|
return BucketRemoteTargetNotFound{Bucket: tgt.TargetBucket, Err: err}
|
||||||
}
|
}
|
||||||
// validate if target credentials are ok
|
// validate if target credentials are ok
|
||||||
exists, err := clnt.BucketExists(ctx, tgt.TargetBucket)
|
exists, err := clnt.BucketExists(ctx, tgt.TargetBucket)
|
||||||
|
Loading…
Reference in New Issue
Block a user