mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-25 03:19:55 +01:00
Removing engine.ErrDataNotFound in favor of domain.ErrNotFound
This commit is contained in:
parent
c50b0bdc48
commit
1ed8c60130
10 changed files with 15 additions and 19 deletions
|
|
@ -2,11 +2,11 @@ package api
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego"
|
||||
"github.com/deluan/gosonic/api/responses"
|
||||
"github.com/deluan/gosonic/domain"
|
||||
"github.com/deluan/gosonic/engine"
|
||||
"github.com/deluan/gosonic/utils"
|
||||
)
|
||||
|
|
@ -69,7 +69,7 @@ func (c *BrowsingController) GetDirectory() {
|
|||
|
||||
dir, err := c.browser.Directory(id)
|
||||
switch {
|
||||
case err == engine.ErrDataNotFound:
|
||||
case err == domain.ErrNotFound:
|
||||
beego.Error("Requested Id", id, "not found:", err)
|
||||
c.SendError(responses.ErrorDataNotFound, "Directory not found")
|
||||
case err != nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue