Skip to content

Commit befecf0

Browse files
committed
fix(etcd): better error message when watcher cannot be created
1 parent 4fb8a90 commit befecf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

etcd/watch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func (e *Backend) Watch(key string, w store.Watcher, ops ...store.WatchOption) e
5454
select {
5555
case resp := <-rch:
5656
if !resp.Created {
57-
return fmt.Errorf("watch not created")
57+
return fmt.Errorf("watch not created: %s", resp.Err())
5858
}
5959
case <-tCtx.Done():
6060
return fmt.Errorf("watch not created, timeout of %v exceeded", timeout)

0 commit comments

Comments
 (0)