We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bf00d4 commit 8a90039Copy full SHA for 8a90039
devops/scripts/benchmarks/html/scripts.js
@@ -955,7 +955,10 @@ function loadData() {
955
if (typeof remoteDataUrl !== 'undefined' && remoteDataUrl !== '') {
956
// Fetch data from remote URL
957
fetch(remoteDataUrl)
958
- .then(response => response.json())
+ .then(response => {
959
+ if (!response.ok) { throw new Error(`Got response status ${response.status}.`) }
960
+ return response.json();
961
+ })
962
.then(data => {
963
benchmarkRuns = data.runs || data;
964
benchmarkMetadata = data.metadata || benchmarkMetadata || {};
0 commit comments