background: Add more information to run-time warning

It was impossible to know which background XML had an error with the
original message.
This commit is contained in:
Bastien Nocera 2017-06-07 18:23:53 +02:00
parent 60ad6a35b4
commit 99acb323d2

View file

@ -273,7 +273,7 @@ cc_background_xml_load_xml_internal (CcBackgroundXml *xml,
} else if (!strcmp ((gchar *)wpa->name, "text")) {
/* Do nothing here, libxml2 is being weird */
} else {
g_warning ("Unknown Tag: %s", wpa->name);
g_warning ("Unknown Tag in %s: %s", filename, wpa->name);
}
}