on master help sign in
Use set_error
7b352b6Neil Mitchell
gen/test.c+1−1
@@ -396,7 +396,7 @@ document* hexml_document_parse(const char* s, int slen)
396 // because there is no guaranteed ordering between LHS and RHS evaluation
396 // because there is no guaranteed ordering between LHS and RHS evaluation
397 const char* res = parser(s, d);
397 const char* res = parser(s, d);
398 if (res != NULL)
398 if (res != NULL)
399− d->error_message = strdup(res);
399+ set_error(d, res);
400 else
400 else
401 {
401 {
402 d->nodes.nodes[0].nodes = node_commit(&d->nodes);
402 d->nodes.nodes[0].nodes = node_commit(&d->nodes);