[gtk+/wip/baedert/visible-widgets: 20/22] gtkbuilder: Improve error messages
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/visible-widgets: 20/22] gtkbuilder: Improve error messages
- Date: Thu, 19 Jan 2017 06:20:04 +0000 (UTC)
commit dfde0095cae25595a93f4116c8fcb1693496b826
Author: Timm Bäder <mail baedert org>
Date: Sat Jan 14 10:08:53 2017 +0100
gtkbuilder: Improve error messages
gtk/gtkbuilder.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c
index f415b2c..097b8e1 100644
--- a/gtk/gtkbuilder.c
+++ b/gtk/gtkbuilder.c
@@ -2556,7 +2556,7 @@ gtk_builder_new_from_file (const gchar *filename)
builder = gtk_builder_new ();
if (!gtk_builder_add_from_file (builder, filename, &error))
- g_error ("failed to add UI: %s", error->message);
+ g_error ("failed to add UI from file %s: %s", filename, error->message);
return builder;
}
@@ -2583,7 +2583,7 @@ gtk_builder_new_from_resource (const gchar *resource_path)
builder = gtk_builder_new ();
if (!gtk_builder_add_from_resource (builder, resource_path, &error))
- g_error ("failed to add UI: %s", error->message);
+ g_error ("failed to add UI from resource %s: %s", resource_path, error->message);
return builder;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]