Include missing key in error message for KV store

This commit is contained in:
Andrew Bruce 2018-08-22 15:08:03 +01:00 committed by Traefiker Bot
parent 9c8e518423
commit 6bbac65f7e

View file

@ -78,7 +78,7 @@ func (d *Datastore) watchChanges() error {
stopCh := make(chan struct{})
kvCh, err := d.kv.Watch(d.lockKey, stopCh, nil)
if err != nil {
return err
return fmt.Errorf("error while watching key %s: %v", d.lockKey, err)
}
safe.Go(func() {
ctx, cancel := context.WithCancel(d.ctx)