Address review comments

This commit is contained in:
SamuelToh
2019-02-06 06:41:39 +10:00
parent a7a964ec19
commit 4de9e3598b
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -222,7 +222,7 @@ func PatchAnnotation(c *m.ReqContext, cmd dtos.PatchAnnotationsCmd) Response {
items, err := repo.Find(&annotations.ItemQuery{AnnotationId: annotationID, OrgId: c.OrgId})
if err != nil || len(items) == 0 {
return Error(500, "Could not find annotation to update", err)
return Error(404, "Could not find annotation to update", err)
}
existing := annotations.Item{