summaryrefslogtreecommitdiff
path: root/lib/skin_parser/skin_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r--lib/skin_parser/skin_parser.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c
index 1f4b87a328..39a41e9dd3 100644
--- a/lib/skin_parser/skin_parser.c
+++ b/lib/skin_parser/skin_parser.c
@@ -546,7 +546,10 @@ static int skin_parse_tag(struct skin_element* element, const char** document)
if (callback)
{
if (callback(element, callback_data) == CALLBACK_ERROR)
+ {
+ skin_error(GOT_CALLBACK_ERROR, cursor);
return 0;
+ }
}
#endif
*document = cursor;
@@ -822,7 +825,10 @@ static int skin_parse_tag(struct skin_element* element, const char** document)
if (callback)
{
if (callback(element, callback_data) == CALLBACK_ERROR)
+ {
+ skin_error(GOT_CALLBACK_ERROR, *document);
return 0;
+ }
}
#endif
*document = cursor;