[gnome-devel-docs] Make error message more explicit when printed to the user
- From: Luis Menina <lmenina src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Make error message more explicit when printed to the user
- Date: Wed, 18 Dec 2013 19:45:34 +0000 (UTC)
commit 60566db99f0aad4e6bc6ce39396c1e79701c1979
Author: Luis Menina <liberforce freeside fr>
Date: Tue Dec 17 02:38:36 2013 +0100
Make error message more explicit when printed to the user
platform-demos/C/samples/menubar.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/platform-demos/C/samples/menubar.c b/platform-demos/C/samples/menubar.c
index ff2f4a9..dd1722e 100644
--- a/platform-demos/C/samples/menubar.c
+++ b/platform-demos/C/samples/menubar.c
@@ -276,12 +276,12 @@ startup (GApplication *app,
builder = gtk_builder_new ();
/* Get the file (if it is there):
* Note: you must make sure that the file is in the current directory for
- * this to work. The function used here returns a value within our variable
- * "error", and it is equal to zero if an error is indeed found.
+ * this to work. The function used here returns a non-null value within
+ * our variable "error" if an error is indeed found.
*/
gtk_builder_add_from_file (builder, "menubar.ui", &error);
if (error != NULL) {
- g_print ("File not found.\n");
+ g_print ("%s\n", error->message);
g_error_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]