Skip to content

Commit

Permalink
dev: add a TODO comment for xpath error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
flavorjones committed Dec 20, 2024
1 parent c725720 commit df197ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/nokogiri/xml_xpath_context.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ noko_xml_xpath_context_evaluate(int argc, VALUE *argv, VALUE rb_context)
);
}

/* TODO: use xmlXPathSetErrorHandler (as of 2.13.0) */
xmlSetStructuredErrorFunc((void *)rb_errors, noko__error_array_pusher);
xmlSetGenericErrorFunc((void *)rb_errors, _noko_xml_xpath_context__generic_exception_pusher);

Expand Down

0 comments on commit df197ce

Please sign in to comment.