Commit a245c676a489a739329159b9a1c67645752b2eb2

Authored by Goutte
1 parent 06a3a1f1

Commit generated js as well.

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
web/static/js/swapp.js
... ... @@ -112,6 +112,9 @@
112 112 configuration['parameters'].forEach(function(parameter){
113 113 return data[parameter['id']] = [];
114 114 });
  115 + if (!csv) {
  116 + reject("CSV is empty or nonexistent at URL '" + url + "'.");
  117 + }
115 118 csv.forEach(function(d){
116 119 var dtime;
117 120 dtime = timeFormat(d['time']);
... ...