From 67d2cf8f301d3684f89be37197b40efa916297af Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Fri, 7 Apr 2023 22:50:46 +0800 Subject: [PATCH] add Err to Get getRemoteTargetClient. (#16982) --- cmd/bucket-targets.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bucket-targets.go b/cmd/bucket-targets.go index 6e151a9e2..ac3bf4488 100644 --- a/cmd/bucket-targets.go +++ b/cmd/bucket-targets.go @@ -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)