Backend: Use correct errors in internal/api/link.go
This commit is contained in:
parent
90c910654b
commit
b53eb53b08
|
@ -76,7 +76,7 @@ func LinkPhoto(router *gin.RouterGroup, conf *config.Config) {
|
|||
m, err := q.PhotoByUUID(c.Param("uuid"))
|
||||
|
||||
if err != nil {
|
||||
c.AbortWithStatusJSON(http.StatusNotFound, ErrAlbumNotFound)
|
||||
c.AbortWithStatusJSON(http.StatusNotFound, ErrPhotoNotFound)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ func LinkLabel(router *gin.RouterGroup, conf *config.Config) {
|
|||
m, err := q.LabelByUUID(c.Param("uuid"))
|
||||
|
||||
if err != nil {
|
||||
c.AbortWithStatusJSON(http.StatusNotFound, ErrAlbumNotFound)
|
||||
c.AbortWithStatusJSON(http.StatusNotFound, ErrLabelNotFound)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue