aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/s3iam_conf.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer/s3iam_conf.go')
-rw-r--r--weed/filer/s3iam_conf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/s3iam_conf.go b/weed/filer/s3iam_conf.go
index ea5b1a040..3d0a09214 100644
--- a/weed/filer/s3iam_conf.go
+++ b/weed/filer/s3iam_conf.go
@@ -29,12 +29,12 @@ func ProtoToText(writer io.Writer, config proto.Message) error {
text, marshalErr := m.Marshal(config)
if marshalErr != nil {
- return fmt.Errorf("marshal proto message: %v", marshalErr)
+ return fmt.Errorf("marshal proto message: %w", marshalErr)
}
_, writeErr := writer.Write(text)
if writeErr != nil {
- return fmt.Errorf("fail to write proto message: %v", writeErr)
+ return fmt.Errorf("fail to write proto message: %w", writeErr)
}
return writeErr