Commit 2eb548e
fix: return 400 for cursor errors in log handlers
Previously, invalid cursor errors would return 500 Internal Server Error.
Now properly returns 400 Bad Request for cursor.ErrInvalidCursor and
cursor.ErrVersionMismatch, consistent with tenant_handlers.go behavior.
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent 38c329c commit 2eb548e
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
269 | 271 | | |
270 | 272 | | |
271 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
272 | 278 | | |
273 | 279 | | |
274 | 280 | | |
| |||
431 | 437 | | |
432 | 438 | | |
433 | 439 | | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
434 | 444 | | |
435 | 445 | | |
436 | 446 | | |
| |||
0 commit comments