mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
fix(playlist): dont swallow errors
This commit is contained in:
parent
c4d6051477
commit
d523d45124
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user