mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-21 08:40:34 +00:00
19f01691d5
## 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.