From 5b42e8659fdfb0f8596b93bd1f1229861ed6b997 Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Sat, 9 Mar 2019 13:14:53 +0530 Subject: [PATCH] Fix incorrect passing of error in HTTP response --- handlers.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers.go b/handlers.go index 266c84d..5239c16 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")