File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package middleware
22
33import (
44 "github.com/labstack/echo/v4"
5- e "github.com/laironacosta/kit-go/middleware"
5+ "github.com/laironacosta/kit-go/middleware/responses "
66 "github.com/pkg/errors"
77 "net/http"
88)
@@ -31,7 +31,7 @@ func (h *ErrorHandlerMiddleware) HandlerError(next echo.HandlerFunc) echo.Handle
3131 var status int
3232 // Build the error response
3333 switch act := errors .Cause (err ).(type ) {
34- case * e .GenericHttpError :
34+ case * responses .GenericHttpError :
3535 er = act .ErrorMsg
3636 erCode = act .ErrorCode
3737 status = act .Status
Original file line number Diff line number Diff line change 1- package errors
1+ package responses
22
33// GenericHttpError is used to pass an error during the request through the application
44type GenericHttpError struct {
You can’t perform that action at this time.
0 commit comments