Sfoglia il codice sorgente

better error name for watcher

Xiang Li 12 anni fa
parent
commit
09cfd89298
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      command.go

+ 1 - 1
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)