(err error, statusCode int)
| 44 | } |
| 45 | |
| 46 | func GenLumaError(err error, statusCode int) *WrapperErrorResp { |
| 47 | return &WrapperErrorResp{ |
| 48 | StatusCode: statusCode, |
| 49 | ErrorResp: ErrorResp{ |
| 50 | Detail: err.Error(), |
| 51 | }, |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func ReturnLumaError(c *gin.Context, err ErrorResp, statusCode int) { |
| 56 | common.Logger.Errorw("wrapper luma error", "statusCode", statusCode, "err", err) |
no outgoing calls
no test coverage detected