From 68c17f0785dd4f2cfc17dda6b06ea371546ffa34 Mon Sep 17 00:00:00 2001 From: Masahiko AMANO Date: Fri, 23 Dec 2022 15:14:17 +0300 Subject: [PATCH] style(core): correct error messages --- src/core/sappyou.c | 2 +- src/core/sasahyou.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/sappyou.c b/src/core/sappyou.c index 65182fd..7a7c723 100644 --- a/src/core/sappyou.c +++ b/src/core/sappyou.c @@ -158,7 +158,7 @@ int tanzaku_rem(Sappyou *sappyou, uint64_t tanzaku_id) { return 1; } 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; } if (sappyou->database[tanzaku_id].id == HOLE_ID) { diff --git a/src/core/sasahyou.c b/src/core/sasahyou.c index 282ccaf..1b0960d 100644 --- a/src/core/sasahyou.c +++ b/src/core/sasahyou.c @@ -141,7 +141,7 @@ int sasa_rem(Sasahyou *sasahyou, uint64_t sasa_id) { return 1; } 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; } if (sasahyou->database[sasa_id].id == HOLE_ID) {