mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Azure Monitor: Propagate the error when failed to get datasource instance (#60210)
Propagate the error when failed to get instance
This commit is contained in:
parent
b4e76e75b1
commit
5010765115
@ -71,7 +71,7 @@ func (s *Service) getDataSourceFromHTTPReq(req *http.Request) (types.DatasourceI
|
||||
pluginContext := httpadapter.PluginConfigFromContext(ctx)
|
||||
i, err := s.im.Get(pluginContext)
|
||||
if err != nil {
|
||||
return types.DatasourceInfo{}, nil
|
||||
return types.DatasourceInfo{}, err
|
||||
}
|
||||
ds, ok := i.(types.DatasourceInfo)
|
||||
if !ok {
|
||||
|
Loading…
Reference in New Issue
Block a user