aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/notes.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/notes.go')
-rw-r--r--routers/api/v1/repo/notes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/notes.go b/routers/api/v1/repo/notes.go
index eb048df6fe..87efb1caf2 100644
--- a/routers/api/v1/repo/notes.go
+++ b/routers/api/v1/repo/notes.go
@@ -79,7 +79,7 @@ func getNote(ctx *context.APIContext, identifier string) {
var note git.Note
if err := git.GetNote(ctx, ctx.Repo.GitRepo, commitID.String(), &note); err != nil {
if git.IsErrNotExist(err) {
- ctx.APIErrorNotFound(identifier)
+ ctx.APIErrorNotFound("commit doesn't exist: " + identifier)
return
}
ctx.APIErrorInternal(err)