We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74b1c58 commit 931de1aCopy full SHA for 931de1a
routers/api/v1/repo/commits.go
@@ -195,7 +195,7 @@ func GetAllCommits(ctx *context.APIContext) {
195
// get commit specified by sha
196
baseCommit, err = ctx.Repo.GitRepo.GetCommit(sha)
197
if err != nil {
198
- ctx.Error(http.StatusInternalServerError, "GetCommit", err)
+ ctx.NotFoundOrServerError("GetCommit", git.IsErrNotExist, err)
199
return
200
}
201
0 commit comments