[devhelp/wip/parser-cleanup: 2/2] parser: fix/improve error messages in parser_start_node_book()



commit 39ff4495d098d52ec3fae95ddbb28b499ed3f78b
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 600e5b8..eac8224 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]