From b517ceaaafa1ddce9ae60d5c7a345add7c7c6861 Mon Sep 17 00:00:00 2001 From: Manuel Luis SanmartĂ­n Rozada Date: Thu, 9 Jan 2014 00:41:48 +0100 Subject: jsrrdgraph: Change alter for thow --- js/RrdGraph.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/RrdGraph.js b/js/RrdGraph.js index 8794888..40d70da 100644 --- a/js/RrdGraph.js +++ b/js/RrdGraph.js @@ -1367,10 +1367,8 @@ RrdGraph.prototype.data_fetch_async_callback = function (args, ft_step) } } - if (that.gdes[i].ds === -1) { - alert("No DS called '"+that.gdes[i].ds_nam+"' in '"+that.gdes[i].rrd+"'"); - return; - } + if (that.gdes[i].ds === -1) + throw new RrdGraphError("No DS called '"+that.gdes[i].ds_nam+"' in '"+that.gdes[i].rrd+"'"); } that.graph_paint_draw(); }; -- cgit v1.1