Improve fetchLegislationArticle: better errors, fix book:article number format

↗ view on GitHub · Claude · 2026-05-05 · 2357d694

- Error messages now say exactly which step failed (SRU/manifest/HTTP status)
  so failures are diagnosable from the backend logs
- Handle book:article format like 6:162 by also searching for just the
  article number (162) since BWB XML headers only contain the plain number
- Manifest HTTP error status is now surfaced instead of silently swallowed

https://claude.ai/code/session_016JxWnFc3baeDgkzDgxY6ex
Repository Jeroen1991z/mikeNL
Author Claude <noreply@anthropic.com>
Authored
Committed
Parents 9e4acb5f
Stats 1 file changed , +32 , -16
Part of Legal citation side panel (full-text reader with quote highlight)

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-2357d694.md from inside the repo you want the change in.

⬇ Download capture-commit-2357d694.md