aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/git_ref.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/git_ref.go')
-rw-r--r--routers/api/v1/repo/git_ref.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/git_ref.go b/routers/api/v1/repo/git_ref.go
index e2030ac296..f042e9e344 100644
--- a/routers/api/v1/repo/git_ref.go
+++ b/routers/api/v1/repo/git_ref.go
@@ -78,7 +78,7 @@ func GetGitRefs(ctx *context.APIContext) {
func getGitRefsInternal(ctx *context.APIContext, filter string) {
refs, lastMethodName, err := utils.GetGitRefs(ctx, filter)
if err != nil {
- ctx.APIError(http.StatusInternalServerError, fmt.Errorf("%s: %w", lastMethodName, err))
+ ctx.APIErrorInternal(fmt.Errorf("%s: %w", lastMethodName, err))
return
}