Commit 214b9af5 by Alexander Zobnin

backend plugins: log an error if parsing meta field failed

parent 4533f228
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment