[markup] Print the unparseable text on error
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
046c54a118
commit
7a4237f34f
|
@ -233,7 +233,7 @@ markup_parse(markup_parser_data_t *data, const char *str, ssize_t slen)
|
||||||
|| !g_markup_parse_context_parse(mkp_ctx, "</markup>", -1, &error)
|
|| !g_markup_parse_context_parse(mkp_ctx, "</markup>", -1, &error)
|
||||||
|| !g_markup_parse_context_end_parse(mkp_ctx, &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);
|
g_error_free(error);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue