From 32226774938ad75670e3e9635841dd8512591a93 Mon Sep 17 00:00:00 2001 From: Andrei Burd Date: Wed, 16 Aug 2017 17:56:51 +0300 Subject: [PATCH] Datasource Print the received error (#9043) --- pkg/services/alerting/conditions/query.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/services/alerting/conditions/query.go b/pkg/services/alerting/conditions/query.go index e0a6035355d..ae8008deb75 100644 --- a/pkg/services/alerting/conditions/query.go +++ b/pkg/services/alerting/conditions/query.go @@ -104,7 +104,7 @@ func (c *QueryCondition) executeQuery(context *alerting.EvalContext, timeRange * } if err := bus.Dispatch(getDsInfo); err != nil { - return nil, fmt.Errorf("Could not find datasource") + return nil, fmt.Errorf("Could not find datasource %v", err) } req := c.getRequestForAlertRule(getDsInfo.Result, timeRange)