Commit b40fb4b0742b2ec9bbcc14ec9d1f071d37913b52

Authored by Goutte
1 parent 9bfa6c42

Improve error handling on enmpty CSV.

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
web/static/js/swapp.js
... ... @@ -174,7 +174,7 @@
174 174 }
175 175 }, function(error){
176 176 console.error("Failed loading CSV data of " + target.name + ".", error);
177   - alert("There was an error.\nPlease try again in a few moments.");
  177 + alert("There was an error with the CSV of " + target.name + ".\nPlease try another interval.\n\n" + error);
178 178 targetButton.removeClass('loading');
179 179 return this$.hideLoader();
180 180 });
... ...
web/static/js/swapp.ls
... ... @@ -176,7 +176,7 @@ https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE
176 176 ,
177 177 (error) ~>
178 178 console.error("Failed loading CSV data of #{target.name}.", error)
179   - alert("There was an error.\nPlease try again in a few moments.")
  179 + alert("There was an error with the CSV of #{target.name}.\nPlease try another interval.\n\n#{error}")
180 180 targetButton.removeClass('loading')
181 181 @hideLoader()
182 182 )
... ...