Fix incorrect passing of error in HTTP response

This commit is contained in:
Kailash Nadh 2019-03-09 13:14:53 +05:30
parent 9fc23a89de
commit 5b42e8659f
1 changed files with 1 additions and 2 deletions

View File

@ -125,8 +125,7 @@ func handleIndexPage(c echo.Context) error {
b, err := app.FS.Read("/frontend/index.html")
if err != nil {
return echo.NewHTTPError(http.StatusInternalServerError,
err)
return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
}
c.Response().Header().Set("Content-Type", "text/html")