diff --git a/etcd/v3/kv_etcd.go b/etcd/v3/kv_etcd.go index 0b79a2d5..058f5320 100644 --- a/etcd/v3/kv_etcd.go +++ b/etcd/v3/kv_etcd.go @@ -737,6 +737,7 @@ func (et *etcdKV) LockWithTimeout( if _, errGet := et.GetVal(key, &currLockerTag); errGet == nil { return nil, fmt.Errorf("failed to take a lock on %v: lock taken by: %v ", key, currLockerTag.LockerID) } + return nil, fmt.Errorf("failed to take a lock on %v", key) } } if err != nil {