GNOME Bugzilla – Bug 754012
missing filename in "Error loading css: Failed to import: Error opening file: No such file or directory"
Last modified: 2016-07-17 03:10:39 UTC
From my unit tests I've got a few errors that lack an obvious detail - the filename: "Error loading css: Failed to import: Error opening file: No such file or directory" This is where the error is produced: https://git.gnome.org/browse/gtk+/tree/gtk/gtkcssprovider.c#n2716 I can make a patch to include g_file_get_path(file) here or should g_file_load_contents() already do that? WDYT?
For glib it would need to be done in the vmethods for g_file_read(): https://git.gnome.org/browse/glib/tree/gio/gfile.c#n1565
Created attachment 310038 [details] [review] Improve error reporting Include the filename for the file in question in many of the error messages in glocalfile.c. This is useful information when diagnosing such errors, so make it easily available. http://bugzilla.gnome.org/show_bug.cgi?id=754012
Thanks, that looks perfect!
Attachment 310038 [details] pushed as 21ceeed - Improve error reporting