mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 23:55:47 -06:00
Log bad alert config
This commit is contained in:
parent
942de5497e
commit
d009c6b953
@ -104,6 +104,7 @@ func (e *DashAlertExtractor) GetAlerts() ([]*m.Alert, error) {
|
||||
panelQuery := findPanelQueryByRefId(panel, queryRefId)
|
||||
|
||||
if panelQuery == nil {
|
||||
e.log.Error("Query not found", "panel", alert.PanelId, "queryRefId", queryRefId)
|
||||
return nil, ValidationError{Reason: "Alert refers to query that cannot be found"}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user