]> git.ipfire.org Git - thirdparty/gettext.git/commit
its: Improve error handling.
authorBruno Haible <bruno@clisp.org>
Sun, 13 Oct 2024 01:00:35 +0000 (03:00 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 Oct 2024 01:01:35 +0000 (03:01 +0200)
commitc2e6408656ee2ae9a681bd24aae1e0f719ee4109
tree452ff8154db81c77008a5f0e082d13c5956f2dc1
parentb3e44d04b24335b407d7e65895d3b6f1e4341e0b
its: Improve error handling.

* gettext-tools/src/its.c: Include libxml/xmlerror.h.
(structured_error): New function.
(its_rule_list_add_from_file, its_rule_list_add_from_string,
its_rule_list_extract, its_merge_context_alloc): Exit upon fatal error.
Set the structured_error for the rest of the function.
(its_merge_context_merge, its_merge_context_write): Set the structured_error.
gettext-tools/src/its.c