Browse Source

fix grafana errors not caught by tsdb-kit

master
rozetko 2 years ago
parent
commit
813c50d36d
  1. 3
      src/services/query_service/grafana.ts

3
src/services/query_service/grafana.ts

@ -29,7 +29,8 @@ export class GrafanaQueryService extends QueryService {
_.defaults(axiosQuery, query.schema); _.defaults(axiosQuery, query.schema);
try { try {
return axios(axiosQuery); const resp = await axios(axiosQuery);
return resp;
} catch (e) { } catch (e) {
// TODO: seems like this error handler can be used for both Grafana and Direct queries // TODO: seems like this error handler can be used for both Grafana and Direct queries
const msg = `TSDB-kit: fail while request data: ${e.message}`; const msg = `TSDB-kit: fail while request data: ${e.message}`;

Loading…
Cancel
Save