Skip to content

Commit 5d84f99

Browse files
committed
Merge pull request #28 from syscrusher/fix-echo-handler
echo: handler returns error
2 parents b7fbe57 + 502dd8f commit 5d84f99

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)