Fix incorrect passing of error in HTTP response
This commit is contained in:
parent
9fc23a89de
commit
5b42e8659f
|
@ -125,8 +125,7 @@ func handleIndexPage(c echo.Context) error {
|
||||||
|
|
||||||
b, err := app.FS.Read("/frontend/index.html")
|
b, err := app.FS.Read("/frontend/index.html")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return echo.NewHTTPError(http.StatusInternalServerError,
|
return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
|
||||||
err)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
c.Response().Header().Set("Content-Type", "text/html")
|
c.Response().Header().Set("Content-Type", "text/html")
|
||||||
|
|
Loading…
Reference in New Issue