From 09cfd892985e2ed5ed411d8a4254edcb50d833ec Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Mon, 5 Aug 2013 17:03:15 -0700 Subject: [PATCH] better error name for watcher --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index 3ad371819..8674ec9a9 100644 --- a/command.go +++ b/command.go @@ -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)