fix(playlist): dont swallow errors

This commit is contained in:
bergquist 2016-02-15 10:09:15 +01:00
parent c4d6051477
commit d523d45124

View File

@ -16,7 +16,7 @@ func populateDashboardsById(dashboardByIds []int64) ([]m.PlaylistDashboardDto, e
if len(dashboardByIds) > 0 { if len(dashboardByIds) > 0 {
dashboardQuery := m.GetDashboardsQuery{DashboardIds: dashboardByIds} dashboardQuery := m.GetDashboardsQuery{DashboardIds: dashboardByIds}
if err := bus.Dispatch(&dashboardQuery); err != nil { if err := bus.Dispatch(&dashboardQuery); err != nil {
return result, errors.New("Playlist not found") //TODO: dont swallow error return result, err
} }
for _, item := range *dashboardQuery.Result { for _, item := range *dashboardQuery.Result {