Commit ea7ccda6 by Sofia Papagiannaki Committed by GitHub

Alerting: Propagate failures to delete dashboard alerts (#20507)

* Propagate failures to delete dashboard alerts
parent 359416b8
......@@ -334,13 +334,13 @@ func DeleteDashboard(cmd *models.DeleteDashboardCommand) error {
for _, id := range dashIds {
if err := deleteAlertDefinition(id.Id, sess); err != nil {
return nil
return err
}
}
}
if err := deleteAlertDefinition(dashboard.Id, sess); err != nil {
return nil
return err
}
for _, sql := range deletes {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment