Merge pull request #6453 from utkarshcmu/alert_message_typo

Log bad alert config and fixed alert message typo
This commit is contained in:
Carl Bergquist 2016-11-03 07:12:36 +01:00 committed by GitHub
commit 89a3d023ce

View File

@ -104,7 +104,8 @@ func (e *DashAlertExtractor) GetAlerts() ([]*m.Alert, error) {
panelQuery := findPanelQueryByRefId(panel, queryRefId)
if panelQuery == nil {
return nil, ValidationError{Reason: "Alert refes to query that cannot be found"}
e.log.Error("Query not found", "panel", alert.PanelId, "queryRefId", queryRefId)
return nil, ValidationError{Reason: "Alert refers to query that cannot be found"}
}
dsName := ""