summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2015-08-06 09:26:44 +0200
committerKalev Lember <klember@redhat.com>2015-08-06 09:27:33 +0200
commitbce26189958b567b4145e3594e023bd6fdca8387 (patch)
tree1cf439304147a55e1d1d822f3439334caaa2d596
parent62bca1ea41f27cc84b73cd8e6381517700ad39f2 (diff)
downloadappstream-glib-bce26189958b567b4145e3594e023bd6fdca8387.tar.gz
Show a better error message when there's not enough text before <ul>
Fixes https://github.com/hughsie/appstream-glib/issues/57
-rw-r--r--libappstream-glib/as-app-validate.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
index 5549653..351c7f9 100644
--- a/libappstream-glib/as-app-validate.c
+++ b/libappstream-glib/as-app-validate.c
@@ -317,7 +317,9 @@ as_app_validate_description_list (const gchar *text,
helper->para_chars_before_list < (guint) length_para_before_list) {
ai_app_validate_add (helper,
AS_PROBLEM_KIND_STYLE_INCORRECT,
- "Not enough <p> content before <ul>");
+ "Content before <ul> is too short [%d], at least %d characters required",
+ helper->para_chars_before_list,
+ length_para_before_list);
}
/* we allow the previous paragraph to be short to