Include missing key in error message for KV store
This commit is contained in:
parent
9c8e518423
commit
6bbac65f7e
1 changed files with 1 additions and 1 deletions
|
@ -78,7 +78,7 @@ func (d *Datastore) watchChanges() error {
|
||||||
stopCh := make(chan struct{})
|
stopCh := make(chan struct{})
|
||||||
kvCh, err := d.kv.Watch(d.lockKey, stopCh, nil)
|
kvCh, err := d.kv.Watch(d.lockKey, stopCh, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return fmt.Errorf("error while watching key %s: %v", d.lockKey, err)
|
||||||
}
|
}
|
||||||
safe.Go(func() {
|
safe.Go(func() {
|
||||||
ctx, cancel := context.WithCancel(d.ctx)
|
ctx, cancel := context.WithCancel(d.ctx)
|
||||||
|
|
Loading…
Reference in a new issue