aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/etcd/etcd_store.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer/etcd/etcd_store.go')
-rw-r--r--weed/filer/etcd/etcd_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/etcd/etcd_store.go b/weed/filer/etcd/etcd_store.go
index 7cff4bc25..d300a7048 100644
--- a/weed/filer/etcd/etcd_store.go
+++ b/weed/filer/etcd/etcd_store.go
@@ -48,7 +48,7 @@ func (store *EtcdStore) Initialize(configuration weed_util.Configuration, prefix
timeoutStr := configuration.GetString(prefix + "timeout")
timeout, err := time.ParseDuration(timeoutStr)
if err != nil {
- return fmt.Errorf("parse etcd store timeout: %v", err)
+ return fmt.Errorf("parse etcd store timeout: %w", err)
}
store.timeout = timeout
@@ -66,7 +66,7 @@ func (store *EtcdStore) Initialize(configuration weed_util.Configuration, prefix
var err error
tlsConfig, err = tlsInfo.ClientConfig()
if err != nil {
- return fmt.Errorf("TLS client configuration error: %v", err)
+ return fmt.Errorf("TLS client configuration error: %w", err)
}
}