mirror of
https://github.com/Mercantec-GHC/h4-projekt-gruppe-0-sm.git
synced 2025-04-27 16:24:07 +02:00
better errors for register request
This commit is contained in:
parent
903ee83a1e
commit
f7f8cf9e80
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user