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
2
2
3
3
import (
4
4
"github.com/labstack/echo/v4"
5
- e "github.com/laironacosta/kit-go/middleware"
5
+ "github.com/laironacosta/kit-go/middleware/responses "
6
6
"github.com/pkg/errors"
7
7
"net/http"
8
8
)
@@ -31,7 +31,7 @@ func (h *ErrorHandlerMiddleware) HandlerError(next echo.HandlerFunc) echo.Handle
31
31
var status int
32
32
// Build the error response
33
33
switch act := errors .Cause (err ).(type ) {
34
- case * e .GenericHttpError :
34
+ case * responses .GenericHttpError :
35
35
er = act .ErrorMsg
36
36
erCode = act .ErrorCode
37
37
status = act .Status
Original file line number Diff line number Diff line change 1
- package errors
1
+ package responses
2
2
3
3
// GenericHttpError is used to pass an error during the request through the application
4
4
type GenericHttpError struct {
You can’t perform that action at this time.
0 commit comments