style(core): correct error messages
This commit is contained in:
parent
1f454f6770
commit
68c17f0785
@ -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) {
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user