Browse Source

Merge pull request #6453 from utkarshcmu/alert_message_typo

Log bad alert config and fixed alert message typo
Carl Bergquist 9 years ago
parent
commit
89a3d023ce
1 changed files with 2 additions and 1 deletions
  1. 2 1
      pkg/services/alerting/extractor.go

+ 2 - 1
pkg/services/alerting/extractor.go

@@ -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 := ""