1
0
mirror of https://github.com/labstack/echo.git synced 2025-05-31 23:19:42 +02:00
This commit is contained in:
toimtoimtoim 2023-01-07 14:45:21 +02:00
parent 5cb7cefcc5
commit 0d62f0065f
No known key found for this signature in database
GPG Key ID: 0443E21F7D9928AF

View File

@ -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)