fixed error handling when data failed to be updated
Costa Tsaousis (ktsaou) committed
Dec 1, 2015 at 13:21 UTC
c804a38b7eef8993ba262b6c698332bd7611f2c9
1 file changed
+1
-1
web/dashboard.js
+1
-1
@@ -391,7 +391,7 @@
391
}
392
})
393
.fail(function() {
394
- NETDATA.messageInABox(element, width, height, 'chart "' + id + '" not found on url "' + url + '"');
394
+ NETDATA.messageInABox(element, self.data('width'), self.data('height'), 'cannot download chart "' + self.data('netdata') + '" values from url "' + self.data('chart-url') + '"');
395
})
396
.always(function() {
397
if(typeof callback == 'function') callback();