diff --git a/http.go b/http.go index 9934818..96be969 100644 --- a/http.go +++ b/http.go @@ -252,6 +252,10 @@ func (h *httpServer) Start() error { hd := h.hd h.RUnlock() + if hd == nil { + return errors.New("Server required http.Handler") + } + ln, err := net.Listen("tcp", config.Address) if err != nil { return err