vikunja/pkg/modules
kolaente 39b4568bc5
refactor: centralize HTTP error handling (#2062)
This changes the error handling to a centralized HTTP error handler in `pkg/routes/error_handler.go` that converts all error types to proper HTTP responses. This simplifies the overall error handling because http handler now only need to return the error instead of calling HandleHTTPError as previously.
It also removes the duplication between handling errors with and without Sentry.

🐰 Hop along, dear errors, no more wrapping today!
We've centralized handlers in a shiny new way,
From scattered to unified, the code flows so clean,
ValidationHTTPError marshals JSON supreme!
Direct propagation hops forward with glee,
A refactor so grand—what a sight to see! 🎉
2026-01-08 10:02:59 +00:00
..
auth refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
avatar feat: format user mentions with display names in email notifications (#1930) 2025-12-10 12:39:05 +01:00
background refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00
dump feat: add --preserve-config flag to restore command (#1939) 2025-12-07 21:44:45 +00:00
keyvalue feat: add keyvalue.Remember function 2025-07-17 16:19:13 +02:00
migration refactor: centralize HTTP error handling (#2062) 2026-01-08 10:02:59 +00:00