From a245c676a489a739329159b9a1c67645752b2eb2 Mon Sep 17 00:00:00 2001 From: Goutte Date: Wed, 19 Jul 2017 14:30:36 +0200 Subject: [PATCH] Commit generated js as well. --- web/static/js/swapp.js | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) diff --git a/web/static/js/swapp.js b/web/static/js/swapp.js index 86a2daa..70e722f 100644 --- a/web/static/js/swapp.js +++ b/web/static/js/swapp.js @@ -112,6 +112,9 @@ configuration['parameters'].forEach(function(parameter){ return data[parameter['id']] = []; }); + if (!csv) { + reject("CSV is empty or nonexistent at URL '" + url + "'."); + } csv.forEach(function(d){ var dtime; dtime = timeFormat(d['time']); -- libgit2 0.21.2