mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
backend plugins: dont swallow errors
This commit is contained in:
parent
026eb9ac36
commit
1af4f7a1b4
@ -14,8 +14,15 @@ type TsdbWrapper struct {
|
||||
}
|
||||
|
||||
func (tw *TsdbWrapper) Query(ctx context.Context, ds *models.DataSource, query *tsdb.TsdbQuery) (*tsdb.Response, error) {
|
||||
jsonData, _ := ds.JsonData.MarshalJSON()
|
||||
now, _ := ptypes.TimestampProto(query.TimeRange.Now)
|
||||
jsonData, err := ds.JsonData.MarshalJSON()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
now, err := ptypes.TimestampProto(query.TimeRange.Now)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
pbQuery := &proto.TsdbQuery{
|
||||
Datasource: &proto.DatasourceInfo{
|
||||
|
Loading…
Reference in New Issue
Block a user