0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-05-08 03:43:52 +02:00
Giteabot 2bafa41554
fix(api): return 409 message instead of empty JSON for wrong commit id (#37572) (#37584)
Backport #37572 by @Exgene

## 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.

Co-authored-by: Kausthubh J Rao <105716675+Exgene@users.noreply.github.com>
2026-05-07 11:36:52 +02:00
..
2025-02-17 12:41:03 -08:00
2026-04-03 20:03:59 +00:00
2025-02-17 12:41:03 -08:00
2025-03-31 01:53:48 -04:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2025-02-16 22:13:17 -08:00
2025-02-16 22:13:17 -08:00
2025-10-10 00:39:14 +08:00
2025-03-31 01:53:48 -04:00
2025-02-17 12:41:03 -08:00
2025-02-17 12:41:03 -08:00
2026-04-03 20:03:59 +00:00
2025-02-16 22:13:17 -08:00
2025-02-16 22:13:17 -08:00
2025-04-01 17:36:46 -04:00
2025-02-16 22:13:17 -08:00