1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

[Theme] Improve error mesg on failed variable.

This commit is contained in:
Dave Davenport 2022-06-01 16:51:34 +02:00
parent b891ffa2b3
commit c7776ce9b7

View file

@ -1578,9 +1578,11 @@ static void rofi_theme_parse_process_links_int(ThemeWidget *wid) {
if (pv->value.link.ref == pv) { if (pv->value.link.ref == pv) {
char *n = rofi_theme_widget_get_name(widget); char *n = rofi_theme_widget_get_name(widget);
GString *str = g_string_new(NULL); GString *str = g_string_new(NULL);
g_string_printf( g_string_printf(str,
str, "Failed to resolve variable '%s' in: `%s { %s: var(%s);}`", "Validating the theme failed: the variable '%s' in "
pv->value.link.name, n, pv->name, pv->value.link.name); "`%s { %s: var(%s);}` failed to resolve.",
pv->value.link.name, n, pv->name,
pv->value.link.name);
rofi_add_error_message(str); rofi_add_error_message(str);
g_free(n); g_free(n);