style(core): correct error messages

This commit is contained in:
Masahiko AMANO 2022-12-23 15:14:17 +03:00
parent 1f454f6770
commit 68c17f0785
2 changed files with 2 additions and 2 deletions

View File

@ -158,7 +158,7 @@ int tanzaku_rem(Sappyou *sappyou, uint64_t tanzaku_id) {
return 1; return 1;
} }
if (tanzaku_id >= sappyou->size) { if (tanzaku_id >= sappyou->size) {
fprintf(stderr, "Failed to remove tanzaku: target tanzaku does not exist\n"); fprintf(stderr, "Failed to remove tanzaku: too big ID\n");
return 1; return 1;
} }
if (sappyou->database[tanzaku_id].id == HOLE_ID) { if (sappyou->database[tanzaku_id].id == HOLE_ID) {

View File

@ -141,7 +141,7 @@ int sasa_rem(Sasahyou *sasahyou, uint64_t sasa_id) {
return 1; return 1;
} }
if (sasa_id >= sasahyou->size) { if (sasa_id >= sasahyou->size) {
fprintf(stderr, "Failed to remove sasa: target sasa does not exist\n"); fprintf(stderr, "Failed to remove sasa: too big ID\n");
return 1; return 1;
} }
if (sasahyou->database[sasa_id].id == HOLE_ID) { if (sasahyou->database[sasa_id].id == HOLE_ID) {