1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-17 01:43:02 +02:00

Better HTTP status in basic auth middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2015-05-21 14:02:29 -07:00
parent 3fcf7a470d
commit cfd6d8b77f
3 changed files with 32 additions and 16 deletions

View File

@ -100,7 +100,7 @@ func (c *Context) NoContent(code int) error {
return nil
}
// Error invokes the registered HTTP error handler.
// Error invokes the registered HTTP error handler. Usually used by middleware.
func (c *Context) Error(err error) {
c.echo.httpErrorHandler(err, c)
}