better error name for watcher

release-0.4
Xiang Li 2013-08-05 17:03:15 -07:00
parent 793d5187a5
commit 09cfd89298
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ func (c *WatchCommand) Apply(server *raft.Server) (interface{}, error) {
res := <-watcher.C
if res == nil {
return nil, fmt.Errorf("watcher is cleared")
return nil, fmt.Errorf("Clearing watch")
}
return json.Marshal(res)