errors in the configuration of the middleware are critical now.
Dieser Commit ist enthalten in:
Ursprung
7d937967c4
Commit
2589f42da5
5
http.go
5
http.go
|
@ -247,7 +247,10 @@ func (s *Server) Setup() {
|
||||||
site.Init(group)
|
site.Init(group)
|
||||||
}
|
}
|
||||||
for _, middleware := range s.advmiddleware {
|
for _, middleware := range s.advmiddleware {
|
||||||
middleware.Sites(maptoarray(s.sites))
|
if err := middleware.Sites(maptoarray(s.sites)); err != nil {
|
||||||
|
log.Error().Err(err).Msg("Failed to setup midddleware. Stopping with the setup")
|
||||||
|
return
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for cfg, site = range s.sites {
|
for cfg, site = range s.sites {
|
||||||
config := s.Conf.Sites[cfg]
|
config := s.Conf.Sites[cfg]
|
||||||
|
|
Laden…
In neuem Issue referenzieren