better errors for register request

This commit is contained in:
Mikkel Troels Kongsted 2025-03-13 09:59:36 +01:00
parent 903ee83a1e
commit f7f8cf9e80

View File

@ -14,7 +14,7 @@ void route_post_users_register(HttpCtx* ctx)
UsersRegisterReq req;
if (users_register_req_from_json(&req, body_json) != 0) {
RESPOND_BAD_REQUEST(ctx, "bad request");
RESPOND_BAD_REQUEST(ctx, "invalid json");
json_free(body_json);
return;
}