added more user friendly error message in case ServeEvent.Next() is not invoked
This commit is contained in:
parent
1a1e3a2741
commit
d3ca24e509
|
@ -236,6 +236,10 @@ func Serve(app core.App, config ServeConfig) error {
|
|||
return serveHookErr
|
||||
}
|
||||
|
||||
if listener == nil {
|
||||
return errors.New("The OnServe finalizer wasn't invoked. Did you forget to call the ServeEvent.Next() method?")
|
||||
}
|
||||
|
||||
if config.ShowStartBanner {
|
||||
schema := "http"
|
||||
addr := server.Addr
|
||||
|
|
Loading…
Reference in New Issue