mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Add more clear error to migration when rule cannot be parsed (#72374)
This commit is contained in:
parent
758d9884bc
commit
143683bd05
@ -55,7 +55,8 @@ func (m *migration) slurpDashAlerts() ([]dashAlert, error) {
|
||||
for i := range dashAlerts {
|
||||
err = json.Unmarshal(dashAlerts[i].Settings, &dashAlerts[i].ParsedSettings)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
da := dashAlerts[i]
|
||||
return nil, fmt.Errorf("failed to parse alert rule ID:%d, name:'%s', orgID:%d: %w", da.Id, da.Name, da.OrgId, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user