[devhelp/wip/misc: 3/3] parser: fix/improve error messages in parser_start_node_book()



commit 4c2bf9b8e6ee18611b995cd9048f0a34efb7a084
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Thu May 11 15:02:05 2017 +0200

    parser: fix/improve error messages in parser_start_node_book()

 src/dh-parser.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dh-parser.c b/src/dh-parser.c
index b979240..0f58c20 100644
--- a/src/dh-parser.c
+++ b/src/dh-parser.c
@@ -100,7 +100,7 @@ parser_start_node_book (DhParser             *parser,
                 g_set_error (error,
                              DH_ERROR,
                              DH_ERROR_MALFORMED_BOOK,
-                             _("Expected “%s”, got “%s” at line %d, column %d"),
+                             _("Expected “%s” element, got “%s” at line %d, column %d"),
                              "book", node_name, line, col);
                 return;
         }
@@ -138,8 +138,8 @@ parser_start_node_book (DhParser             *parser,
                 g_set_error (error,
                              DH_ERROR,
                              DH_ERROR_MALFORMED_BOOK,
-                             _("“title”, “name” and “link” elements are "
-                               "required at line %d, column %d"),
+                             _("“title”, “name” and “link” attributes are required "
+                               "inside the <book> element at line %d, column %d"),
                              line, col);
                 return;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]