Skip to content

Business intelligence made simple

Improved error [skip ci]

Andrew Kaneb16803e40eb6
diff --git a/app/assets/javascripts/blazer/application.js b/app/assets/javascripts/blazer/application.js
index 98515e8a..00ffe11e 100644
--- a/app/assets/javascripts/blazer/application.js
+++ b/app/assets/javascripts/blazer/application.js
@@ -127,7 +127,7 @@ function getJSON(url, success, controller) {
fetch(url, options)
.then(function (response) {
if (!response.ok) {
- throw new Error("Bad response")
+ throw new Error(response.statusText)
}
return response.json()
})