[util] Minor edit of failure messages

This commit is contained in:
Behdad Esfahbod 2021-08-11 20:46:16 -06:00
parent b83f25c749
commit 4ec727e55f
1 changed files with 4 additions and 4 deletions

View File

@ -72,11 +72,11 @@ parse_gids (const char *name G_GNUC_UNUSED,
{ {
hb_set_destroy (gids); hb_set_destroy (gids);
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, 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; return false;
} }
if (p && p[0] == '-') //gid ranges if (p && p[0] == '-') // ranges
{ {
s = ++p; s = ++p;
hb_codepoint_t end_code = strtoul (s, &p, 10); 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); hb_set_destroy (gids);
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, 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; return false;
} }
@ -92,7 +92,7 @@ parse_gids (const char *name G_GNUC_UNUSED,
{ {
hb_set_destroy (gids); hb_set_destroy (gids);
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE, 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; return false;
} }
hb_set_add_range (gids, start_code, end_code); hb_set_add_range (gids, start_code, end_code);