Skip to content

[BUGFIX] Catch and report XPath evaluation errors - #341

Merged
beatrycze-volk merged 1 commit into
slub:mainfrom
beatrycze-volk:xpath
Oct 5, 2026
Merged

beatrycze-volk merged 1 commit into
slub:mainfrom
beatrycze-volk:xpath

Conversation

@beatrycze-volk

Copy link
Copy Markdown
Contributor

Wrap SimpleXMLElement::xpath() calls to detect libxml errors and throw a RuntimeException with a descriptive message. This ensures that invalid XPath expressions are explicitly reported, improving debugging and preventing silent failures.

Wrap `SimpleXMLElement::xpath()` calls to detect `libxml` errors and throw
a `RuntimeException` with a descriptive message. This ensures that
invalid XPath expressions are explicitly reported, improving debugging
and preventing silent failures.
@beatrycze-volk beatrycze-volk self-assigned this Oct 5, 2026
@beatrycze-volk beatrycze-volk added the bug Software errors, unintended behaviors, or faulty functionality that needs a fix label Oct 5, 2026
@beatrycze-volk
beatrycze-volk merged commit c8fead3 into slub:main Oct 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Software errors, unintended behaviors, or faulty functionality that needs a fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants