Fixed build

This commit is contained in:
Deluan 2016-10-03 23:04:08 -04:00
parent 4e6cd7e05d
commit bbb3e26600
2 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ func (c *AlbumListController) getAlbumList() (engine.Entries, error) {
func (c *AlbumListController) GetAlbumList() {
albums, err := c.getAlbumList()
if err != nil {
c.SendError(responses.ErrorGeneric, err.Error)
c.SendError(responses.ErrorGeneric, err.Error())
}
response := c.NewEmpty()
@ -67,7 +67,7 @@ func (c *AlbumListController) GetAlbumList() {
func (c *AlbumListController) GetAlbumList2() {
albums, err := c.getAlbumList()
if err != nil {
c.SendError(responses.ErrorGeneric, err.Error)
c.SendError(responses.ErrorGeneric, err.Error())
}
response := c.NewEmpty()

View File

@ -87,7 +87,7 @@ func (c *MediaAnnotationController) Scrobble() {
ids := c.RequiredParamStrings("id", "Required id parameter is missing")
times := c.ParamTimes("time")
if len(times) > 0 && len(times) != len(ids) {
c.SendError(responses.ErrorGeneric, fmt.Sprintf("Wrong number of timestamps: %d", len(times)))
c.SendError(responses.ErrorGeneric, "Wrong number of timestamps: %d", len(times))
}
submission := c.ParamBool("submission", true)
playerId := 1 // TODO Multiple players, based on playerName/username/clientIP(?)