Skip to content

Commit 567d073

Browse files
sahrizviclaude
andcommitted
fix(server): return 400 for an invalid ripgrep pattern, not 500
The InvalidPatternError added in the previous commit reached the shared error handler as an unrecognised NamedError, so a malformed search regex surfaced from /find as an HTTP 500 — a server fault for what is bad user input. Mapped to 400 by name in both the core and legacy NamedError branches. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
1 parent d41c0fa commit 567d073

1 file changed

Lines changed: 548 additions & 547 deletions

File tree

0 commit comments

Comments
 (0)