mirror of
https://github.com/labstack/echo.git
synced 2025-05-31 23:19:42 +02:00
fix
This commit is contained in:
parent
5cb7cefcc5
commit
0d62f0065f
@ -119,7 +119,7 @@ func (config LoggerConfig) ToMiddleware() (echo.MiddlewareFunc, error) {
|
||||
|
||||
start := time.Now()
|
||||
err := next(c)
|
||||
if err = next(c); err != nil {
|
||||
if err != nil {
|
||||
// When global error handler writes the error to the client the Response gets "committed". This state can be
|
||||
// checked with `c.Response().Committed` field.
|
||||
c.Error(err)
|
||||
|
Loading…
x
Reference in New Issue
Block a user