mirror of
https://github.com/go-gitea/gitea.git
synced 2026-06-01 06:15:40 +02:00
## Issue Closes #37217 The error string was getting lost while returning due to `ctx.JSON()` which cannot serialize the `error` object. ## Fix Use `ctx.APIError()` to return proper error messages back to the client.