(w http.ResponseWriter, err error, status int)
| 30 | } |
| 31 | |
| 32 | func ErrorJSON(w http.ResponseWriter, err error, status int) { |
| 33 | payload := JSONResponse{ |
| 34 | Error: true, |
| 35 | Message: err.Error(), |
| 36 | } |
| 37 | |
| 38 | WriteJSON(w, status, payload) |
| 39 | } |
nothing calls this directly
no test coverage detected