Commit Graph
1 Commits
Author SHA1 Message Date
stumpylogandClaude Opus 5 4de3711940 fix(search): let library-internal search errors surface as 500s, not 400s
DocumentViewSet.list's trailing except Exception clause was catching the
re-raised QueryParserError/INTERNAL-cause QueryError that _map_emit_error
and whoosh-compat's own parse() deliberately let escape, and turning them
into a generic 400 -- exactly the outcome that routing exists to prevent.
Remove the catch-all (and the now-redundant QueryParserError re-raise it
made pointless) so a whoosh-compat library defect surfaces as a
monitorable 500 instead of blaming the user for it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 07:20:55 -07:00