Skip to content

Commit 10e63e5

Browse files
committed
Merge branch 'master' of github.com:grafana/grafana
2 parents 15299c2 + 593863f commit 10e63e5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

public/app/plugins/datasource/prometheus/datasource.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ export function PrometheusDatasource(instanceSettings, $q, backendSrv, templateS
123123
};
124124

125125
this.performTimeSeriesQuery = function(query, start, end) {
126+
if (start > end) {
127+
throw { message: 'Invalid time range' };
128+
}
129+
126130
var url = '/api/v1/query_range?query=' + encodeURIComponent(query.expr) + '&start=' + start + '&end=' + end + '&step=' + query.step;
127131
return this._request('GET', url, query.requestId);
128132
};

0 commit comments

Comments
 (0)