| 9 | ) |
| 10 | |
| 11 | type APIErrorResponse struct { |
| 12 | Error string `json:"error"` |
| 13 | ErrorKey string `json:"error_key,omitempty"` |
| 14 | ErrorParams map[string]string `json:"error_params,omitempty"` |
| 15 | } |
| 16 | |
| 17 | func writeAPIError(c *gin.Context, statusCode int, publicMsg, errorKey string, errorParams map[string]string) { |
| 18 | resp := APIErrorResponse{ |
nothing calls this directly
no outgoing calls
no test coverage detected