NotJSON -> BadJSON

This commit is contained in:
Neil Alexander 2020-06-04 10:33:12 +01:00
parent 1e5a7ad6c0
commit e4cb61aa42

View file

@ -162,7 +162,7 @@ func SendJoin(
if err != nil { if err != nil {
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusBadRequest, Code: http.StatusBadRequest,
JSON: jsonerror.NotJSON("The request body could not be decoded into valid JSON. " + err.Error()), JSON: jsonerror.BadJSON("The request body could not be decoded into valid JSON: " + err.Error()),
} }
} }