From 7a4237f34f2fc3bcac0c15ccd66f045950888a45 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 28 Apr 2008 17:50:46 +0200 Subject: [PATCH] [markup] Print the unparseable text on error Signed-off-by: Julien Danjou --- common/markup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/markup.c b/common/markup.c index 639d66b18..10594d507 100644 --- a/common/markup.c +++ b/common/markup.c @@ -233,7 +233,7 @@ markup_parse(markup_parser_data_t *data, const char *str, ssize_t slen) || !g_markup_parse_context_parse(mkp_ctx, "", -1, &error) || !g_markup_parse_context_end_parse(mkp_ctx, &error)) { - warn("unable to parse text: %s\n", error->message); + warn("unable to parse text \"%s\": %s\n", str, error->message); g_error_free(error); return false; }