mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
Panic instead of warn
This commit is contained in:
parent
3fbecc680f
commit
1d8ee75fa4
|
|
@ -164,7 +164,7 @@ func SetupAndServeHTTP(
|
||||||
// We only need the files beneath the static/client/login folder.
|
// We only need the files beneath the static/client/login folder.
|
||||||
sub, err := fs.Sub(loginFallback, "static/client/login")
|
sub, err := fs.Sub(loginFallback, "static/client/login")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
logrus.Warnf("unable to read dir: %s", err)
|
logrus.Panic("unable to read embedded files, this should never happen: %s", err)
|
||||||
}
|
}
|
||||||
// Serve a static page for login fallback
|
// Serve a static page for login fallback
|
||||||
routers.Static.PathPrefix("/client/login/").Handler(http.StripPrefix("/_matrix/static/client/login/", http.FileServer(http.FS(sub))))
|
routers.Static.PathPrefix("/client/login/").Handler(http.StripPrefix("/_matrix/static/client/login/", http.FileServer(http.FS(sub))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue