From 56736b7b39218c10efd64f305f7a35df9d4bc0af Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Wed, 4 Nov 2015 00:04:10 -0200 Subject: content-parser: handle errors (that are handler as warnings) in directives --- src/content-parser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/content-parser.c') diff --git a/src/content-parser.c b/src/content-parser.c index 042f308..a9ab9af 100644 --- a/src/content-parser.c +++ b/src/content-parser.c @@ -1114,8 +1114,11 @@ hr: case CONTENT_DIRECTIVE_PARAM_END: param_end: if (c == '\n' || c == '\r' || is_last) { + // FIXME: handle errors in the rest of the parser. + blogc_error_t *err = NULL; char *rv_d = blogc_directive_loader(directive_name, - directive_argument, directive_params); + directive_argument, directive_params, &err); + blogc_error_print(err); if (rv_d != NULL) b_string_append(rv, rv_d); free(rv_d); -- cgit v1.2.3-18-g5258