[util] Use g_set_error() in one more place
This commit is contained in:
parent
4d73b3d9b1
commit
3f94177ee8
|
@ -123,11 +123,13 @@ font_options_t::post_parse (GError **error)
|
||||||
}
|
}
|
||||||
g_string_append_c (s, '\n');
|
g_string_append_c (s, '\n');
|
||||||
char *p = g_string_free (s, FALSE);
|
char *p = g_string_free (s, FALSE);
|
||||||
fail (false, "Unknown font function implementation `%s'; supported values are: %s; default is %s",
|
g_set_error (error, G_OPTION_ERROR, G_OPTION_ERROR_BAD_VALUE,
|
||||||
font_funcs,
|
"Unknown font function implementation `%s'; supported values are: %s; default is %s",
|
||||||
p,
|
font_funcs,
|
||||||
supported_font_funcs[0].name);
|
p,
|
||||||
//free (p);
|
supported_font_funcs[0].name);
|
||||||
|
free (p);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_font_funcs (font);
|
set_font_funcs (font);
|
||||||
|
|
Loading…
Reference in New Issue