show better error message, when no data points are found

This commit is contained in:
2017-03-26 17:30:50 +02:00
parent ee00ecb4b5
commit 364997e611
5 changed files with 40 additions and 9 deletions

View File

@@ -99,7 +99,13 @@ function plot(event){
$('#result-view').html('<img src=\"'+response.imageUrls+'" />');
};
var error = function(e) {
$('#result-view').text("FAILED: " + JSON.stringify(e));
if (e.status == 404){
$('#result-view').text("No data points found.");
}
else{
$('#result-view').text("FAILED: " + JSON.stringify(e));
}
};