5e185f0c37
- Add reportsRouter.onError() to catch unhandled Drizzle/DB exceptions and return a JSON 500 with the error message instead of an empty response. Previously, any thrown error caused a non-OK response that the frontend showed only as a generic "Failed to load report data". - Improve the frontend error to identify which specific report endpoint failed (name + HTTP status + first 120 chars of response body), making the root cause visible without needing to open the browser network tab. Closes #49 Co-Authored-By: Paperclip <noreply@paperclip.ing>