]> arthur.barton.de Git - netdata.git/commitdiff
fixed error handling when data failed to be updated
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 1 Dec 2015 11:21:36 +0000 (13:21 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 1 Dec 2015 11:21:36 +0000 (13:21 +0200)
web/dashboard.js

index d99a53eb48bcad1ddd2e1ecebb555fda7cff3323..2639418980120801387595e3ab514f9a04fc5272 100755 (executable)
                                }
                        })
                        .fail(function() {
-                               NETDATA.messageInABox(element, width, height, 'chart "' + id + '" not found on url "' + url + '"');
+                               NETDATA.messageInABox(element, self.data('width'), self.data('height'), 'cannot download chart "' + self.data('netdata') + '" values from url "' + self.data('chart-url') + '"');
                        })
                        .always(function() {
                                if(typeof callback == 'function') callback();