mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
backend plugins: log an error if parsing meta field failed
This commit is contained in:
parent
4533f22871
commit
214b9af5a3
@ -81,7 +81,10 @@ func (tw *DatasourcePluginWrapper) Query(ctx context.Context, ds *models.DataSou
|
||||
}
|
||||
|
||||
if r.MetaJson != "" {
|
||||
metaJson, _ := simplejson.NewJson([]byte(r.MetaJson))
|
||||
metaJson, err := simplejson.NewJson([]byte(r.MetaJson))
|
||||
if err != nil {
|
||||
tw.logger.Error("Error parsing JSON Meta field: " + err.Error())
|
||||
}
|
||||
qr.Meta = metaJson
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user