[gtk+/wip/baedert/visible-widgets] gtkbuilder: Improve error messages
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/visible-widgets] gtkbuilder: Improve error messages
- Date: Mon, 16 Jan 2017 16:20:03 +0000 (UTC)
commit e48be912b71b6e94e18874db5538c487551b7d16
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]