mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
better error name for watcher
This commit is contained in:
parent
793d5187a5
commit
09cfd89298
@ -102,7 +102,7 @@ func (c *WatchCommand) Apply(server *raft.Server) (interface{}, error) {
|
|||||||
res := <-watcher.C
|
res := <-watcher.C
|
||||||
|
|
||||||
if res == nil {
|
if res == nil {
|
||||||
return nil, fmt.Errorf("watcher is cleared")
|
return nil, fmt.Errorf("Clearing watch")
|
||||||
}
|
}
|
||||||
|
|
||||||
return json.Marshal(res)
|
return json.Marshal(res)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user