diff --git a/public/script/app.js b/public/script/app.js index 440774da..a16d620c 100644 --- a/public/script/app.js +++ b/public/script/app.js @@ -1635,7 +1635,11 @@ module.controller('stepFourController', ['$scope', '$state', '$http', 'swalServi $scope.update_ar_ready(); } - }, function (resp) { + }, function(err) { + alert('The data set failed to upload'); + }, + + function (resp) { $scope.showUploadProgress = false; alert('Something wrong with the uploaded data set'); @@ -1676,7 +1680,10 @@ module.controller('stepFourController', ['$scope', '$state', '$http', 'swalServi $scope.showUploadProgress = false; alert('Something wrong with the uploaded data set'); - }, function (evt) { + }, function(err) { + alert('The data set failed to upload'); + }, + function (evt) { $scope.showUploadProgress = true; $scope.progressPercentage = parseInt(100.0 * evt.loaded / evt.total); @@ -1958,7 +1965,11 @@ module.controller('stepSixController', ['$scope', '$state', '$http', 'Upload', ' $scope.showUploadProgress = false; alert('Something wrong with the uploaded data set'); - }, function (evt) { + }, function(err) { + alert('The data set failed to upload'); + }, + + function (evt) { $scope.showUploadProgress = true; $scope.progressPercentage = parseInt(100.0 * evt.loaded / evt.total);