Renamed error variable

This commit is contained in:
Deluan
2016-03-10 11:25:15 -05:00
parent 42f3279aaf
commit 5fc3b3ff11
8 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func (c *GetCoverArtController) Get() {
err := c.cover.Get(id, size, c.Ctx.ResponseWriter)
switch {
case err == engine.DataNotFound:
case err == engine.ErrDataNotFound:
beego.Error(err, "Id:", id)
c.SendError(responses.ERROR_DATA_NOT_FOUND, "Directory not found")
case err != nil: