diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-11-04 01:30:44 -0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-11-04 01:30:44 -0200 |
commit | 1ed6d31c8f97c71fdaa2eef8b575ba14d1437a33 (patch) | |
tree | d48ededd476a1994cb84fcc865e6346a8f60ba1d /src/content-parser.c | |
parent | 48d8e5538d3b49f41b35dcfb4f5b8ab3d02a10c2 (diff) | |
download | blogc-1ed6d31c8f97c71fdaa2eef8b575ba14d1437a33.tar.gz blogc-1ed6d31c8f97c71fdaa2eef8b575ba14d1437a33.tar.bz2 blogc-1ed6d31c8f97c71fdaa2eef8b575ba14d1437a33.zip |
Revert "Revert "content-parser: handle errors (that are handler as warnings) in directives""
This reverts commit 0fe9ed29207c428deda6c960c81359113f1d3384.
Diffstat (limited to 'src/content-parser.c')
-rw-r--r-- | src/content-parser.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |