Skip to content

Commit 502dd8f

Browse files
committed
fix echo handler to return error labstack/echo@381fbae
1 parent 4b5901e commit 502dd8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

routers.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,10 +277,11 @@ func loadDencoSingle(method, path string, h denco.HandlerFunc) http.Handler {
277277
}
278278

279279
// Echo
280-
func echoHandler(*echo.Context) {}
280+
func echoHandler(*echo.Context) error { return nil }
281281

282-
func echoHandlerWrite(c *echo.Context) {
282+
func echoHandlerWrite(c *echo.Context) error {
283283
io.WriteString(c.Response, c.Param("name"))
284+
return nil
284285
}
285286

286287
func loadEcho(routes []route) http.Handler {

0 commit comments

Comments
 (0)