backend plugins: dont swallow errors

This commit is contained in:
bergquist 2017-12-11 13:16:16 +01:00
parent 026eb9ac36
commit 1af4f7a1b4

View File

@ -14,8 +14,15 @@ type TsdbWrapper struct {
} }
func (tw *TsdbWrapper) Query(ctx context.Context, ds *models.DataSource, query *tsdb.TsdbQuery) (*tsdb.Response, error) { func (tw *TsdbWrapper) Query(ctx context.Context, ds *models.DataSource, query *tsdb.TsdbQuery) (*tsdb.Response, error) {
jsonData, _ := ds.JsonData.MarshalJSON() jsonData, err := ds.JsonData.MarshalJSON()
now, _ := ptypes.TimestampProto(query.TimeRange.Now) if err != nil {
return nil, err
}
now, err := ptypes.TimestampProto(query.TimeRange.Now)
if err != nil {
return nil, err
}
pbQuery := &proto.TsdbQuery{ pbQuery := &proto.TsdbQuery{
Datasource: &proto.DatasourceInfo{ Datasource: &proto.DatasourceInfo{