Renamed error variable
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ func (c *BrowsingController) GetDirectory() {
|
||||
|
||||
dir, err := c.browser.Directory(id)
|
||||
switch {
|
||||
case err == engine.DataNotFound:
|
||||
case err == engine.ErrDataNotFound:
|
||||
beego.Error("Requested Id", id, "not found:", err)
|
||||
c.SendError(responses.ERROR_DATA_NOT_FOUND, "Directory not found")
|
||||
case err != nil:
|
||||
|
||||
Reference in New Issue
Block a user