aboutsummaryrefslogtreecommitdiff
path: root/echo
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2022-11-15 20:57:50 -0800
committerMike Crute <mike@crute.us>2022-11-15 20:57:50 -0800
commit8df3d3d2ea65bf9053ad5191215bb01e29866498 (patch)
treee4bf08b1e565f375fd5a585af5fba14cc778c283 /echo
parentabd055445ed9b1937f1dd7697ca503b245705ce1 (diff)
downloadgolib-8df3d3d2ea65bf9053ad5191215bb01e29866498.tar.bz2
golib-8df3d3d2ea65bf9053ad5191215bb01e29866498.tar.xz
golib-8df3d3d2ea65bf9053ad5191215bb01e29866498.zip
echo: fix error page fmt
Diffstat (limited to 'echo')
-rw-r--r--echo/error_handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/echo/error_handler.go b/echo/error_handler.go
index bb4102b..2316ccd 100644
--- a/echo/error_handler.go
+++ b/echo/error_handler.go
@@ -65,7 +65,7 @@ func ErrorHandler(templates fs.FS, funcs template.FuncMap) func(error, echo.Cont
65 if c.Echo().Debug { 65 if c.Echo().Debug {
66 c.JSON(http.StatusInternalServerError, &echo.HTTPError{ 66 c.JSON(http.StatusInternalServerError, &echo.HTTPError{
67 Code: http.StatusInternalServerError, 67 Code: http.StatusInternalServerError,
68 Message: fmt.Sprintf("Error while processing error page. %w", err), 68 Message: fmt.Sprintf("Error while processing error page. %s", err),
69 }) 69 })
70 } else { 70 } else {
71 c.JSON(http.StatusInternalServerError, &echo.HTTPError{ 71 c.JSON(http.StatusInternalServerError, &echo.HTTPError{