aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/command_s3_bucket_quota_check.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/command_s3_bucket_quota_check.go')
-rw-r--r--weed/shell/command_s3_bucket_quota_check.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/shell/command_s3_bucket_quota_check.go b/weed/shell/command_s3_bucket_quota_check.go
index 27b903405..bb54b73a4 100644
--- a/weed/shell/command_s3_bucket_quota_check.go
+++ b/weed/shell/command_s3_bucket_quota_check.go
@@ -55,7 +55,7 @@ func (c *commandS3BucketQuotaEnforce) Do(args []string, commandEnv *CommandEnv,
var filerBucketsPath string
filerBucketsPath, err = readFilerBucketsPath(commandEnv)
if err != nil {
- return fmt.Errorf("read buckets: %v", err)
+ return fmt.Errorf("read buckets: %w", err)
}
// read existing filer configuration
@@ -81,7 +81,7 @@ func (c *commandS3BucketQuotaEnforce) Do(args []string, commandEnv *CommandEnv,
return nil
}, "", false, math.MaxUint32)
if err != nil {
- return fmt.Errorf("list buckets under %v: %v", filerBucketsPath, err)
+ return fmt.Errorf("list buckets under %v: %w", filerBucketsPath, err)
}
// apply the configuration changes