diff options
author | Kalev Lember <klember@redhat.com> | 2015-08-06 09:26:44 +0200 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2015-08-06 09:27:33 +0200 |
commit | bce26189958b567b4145e3594e023bd6fdca8387 (patch) | |
tree | 1cf439304147a55e1d1d822f3439334caaa2d596 | |
parent | 62bca1ea41f27cc84b73cd8e6381517700ad39f2 (diff) | |
download | appstream-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.c | 4 |
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 |