Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Fix incorrect passing of error in HTTP response

Kailash Nadh5b42e8659fdf
diff --git a/handlers.go b/handlers.go
index 266c84de..5239c16f 100644
--- a/handlers.go
+++ b/handlers.go
@@ -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")