Skip to content

Commit

Permalink
Making error code bit more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
sg777 committed May 6, 2024
1 parent 074d89f commit 443c64a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion privatebet/dealer.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,12 @@ int32_t dealer_init(struct table t)
if (!(is_id_exists(t.dealer_id, 0) && is_id_exists(t.table_id, 0))) {
return ERR_ID_NOT_FOUND;
}
if (!(id_cansignfor(t.dealer_id, 0) && id_cansignfor(t.table_id, 0))) {
if (!id_cansignfor(t.dealer_id, 0)) {
dlg_error("The wallet doesn't contain private key to update the ID %s", t.dealer_id);
return ERR_ID_AUTH;
}
if (!id_cansignfor(t.table_id, 0)) {
dlg_error("The wallet doesn't contain private key to update the ID %s", t.table_id);
return ERR_ID_AUTH;
}

Expand Down

0 comments on commit 443c64a

Please sign in to comment.