fix(event_history) fix a bug in event queue

This commit is contained in:
Xiang Li
2013-12-21 15:56:16 +08:00
committed by Brandon Philips
parent 70c8c09360
commit ef988020b7
3 changed files with 8 additions and 12 deletions

View File

@@ -57,7 +57,7 @@ func GetHandler(w http.ResponseWriter, req *http.Request, s Server) error {
// Start the watcher on the store.
eventChan, err := s.Store().Watch(key, recursive, sinceIndex)
if err != nil {
return etcdErr.NewError(500, key, s.Store().Index())
return err
}
cn, _ := w.(http.CloseNotifier)