From 4ec727e55f1f5479aa2be85f8ad4e0f1a4b922b6 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 11 Aug 2021 20:46:16 -0600 Subject: [PATCH] [util] Minor edit of failure messages --- util/subset-options.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/subset-options.hh b/util/subset-options.hh index 6027cde94..365675dec 100644 --- a/util/subset-options.hh +++ b/util/subset-options.hh @@ -72,11 +72,11 @@ parse_gids (const char *name G_GNUC_UNUSED, { hb_set_destroy (gids); g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, - "Failed parsing gids values at: '%s'", s); + "Failed parsing glyph-index at: '%s'", s); return false; } - if (p && p[0] == '-') //gid ranges + if (p && p[0] == '-') // ranges { s = ++p; hb_codepoint_t end_code = strtoul (s, &p, 10); @@ -84,7 +84,7 @@ parse_gids (const char *name G_GNUC_UNUSED, { hb_set_destroy (gids); g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, - "Failed parsing gids values at: '%s'", s); + "Failed parsing glyph-index at: '%s'", s); return false; } @@ -92,7 +92,7 @@ parse_gids (const char *name G_GNUC_UNUSED, { hb_set_destroy (gids); g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, - "Invalid gids range value %u-%u", start_code, end_code); + "Invalid gid-index range %u-%u", start_code, end_code); return false; } hb_set_add_range (gids, start_code, end_code);