Polishing

This commit is contained in:
Deluan
2016-03-23 12:35:10 -04:00
parent b3215f057f
commit c87b133071
17 changed files with 74 additions and 69 deletions
+4 -4
View File
@@ -36,7 +36,7 @@ func (c *AlbumListController) GetAlbumList() {
if !found {
beego.Error("albumList type", typ, "not implemented!")
c.SendError(responses.ERROR_GENERIC, "Not implemented!")
c.SendError(responses.ErrorGeneric, "Not implemented!")
}
offset := c.ParamInt("offset", 0)
@@ -45,7 +45,7 @@ func (c *AlbumListController) GetAlbumList() {
albums, err := method(offset, size)
if err != nil {
beego.Error("Error retrieving albums:", err)
c.SendError(responses.ERROR_GENERIC, "Internal Error")
c.SendError(responses.ErrorGeneric, "Internal Error")
}
response := c.NewEmpty()
@@ -57,7 +57,7 @@ func (c *AlbumListController) GetStarred() {
albums, err := c.listGen.GetStarred(0, -1)
if err != nil {
beego.Error("Error retrieving starred albums:", err)
c.SendError(responses.ERROR_GENERIC, "Internal Error")
c.SendError(responses.ErrorGeneric, "Internal Error")
}
response := c.NewEmpty()
@@ -71,7 +71,7 @@ func (c *AlbumListController) GetNowPlaying() {
npInfos, err := c.listGen.GetNowPlaying()
if err != nil {
beego.Error("Error retrieving now playing list:", err)
c.SendError(responses.ERROR_GENERIC, "Internal Error")
c.SendError(responses.ErrorGeneric, "Internal Error")
}
response := c.NewEmpty()