[json-glib] Improve consistency in error messages
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] Improve consistency in error messages
- Date: Mon, 28 Oct 2013 11:46:12 +0000 (UTC)
commit 42c36ba1c5a04a60bf1a6ec221c722b6c0136562
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Oct 28 11:17:06 2013 +0000
Improve consistency in error messages
Use the same spacing and formatting rules.
json-glib/json-glib-format.c | 4 ++--
json-glib/json-glib-validate.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/json-glib/json-glib-format.c b/json-glib/json-glib-format.c
index df9123b..f10cee9 100644
--- a/json-glib/json-glib-format.c
+++ b/json-glib/json-glib-format.c
@@ -96,7 +96,7 @@ format (JsonParser *parser,
/* Translators: the first %s is the program name, the
* second one is the URI of the file.
*/
- g_printerr (_("%s: %s, error writing to stdout"), g_get_prgname (), g_file_get_uri (file));
+ g_printerr (_("%s: %s: error writing to stdout"), g_get_prgname (), g_file_get_uri (file));
res = FALSE;
goto out;
}
@@ -116,7 +116,7 @@ out:
/* Translators: the first %s is the program name, the second one
* is the URI of the file, the third is the error message.
*/
- g_printerr (_("%s: %s:error closing: %s\n"),
+ g_printerr (_("%s: %s: error closing: %s\n"),
g_get_prgname (), g_file_get_uri (file), error->message);
g_clear_error (&error);
res = FALSE;
diff --git a/json-glib/json-glib-validate.c b/json-glib/json-glib-validate.c
index 72eec70..97bd53d 100644
--- a/json-glib/json-glib-validate.c
+++ b/json-glib/json-glib-validate.c
@@ -82,7 +82,7 @@ validate (JsonParser *parser,
/* Translators: the first %s is the program name, the second one
* is the URI of the file, the third is the error message.
*/
- g_printerr (_("%s: %s:error closing: %s\n"),
+ g_printerr (_("%s: %s: error closing: %s\n"),
g_get_prgname (), g_file_get_uri (file), error->message);
g_clear_error (&error);
res = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]