Better error handling of unpurchase errors

This commit is contained in:
Girish Ramakrishnan
2017-02-08 18:39:29 -08:00
parent 10ad1028ae
commit 9692aa3c08
3 changed files with 6 additions and 0 deletions

View File

@@ -353,6 +353,8 @@ angular.module('Application').controller('AppsController', ['$scope', '$location
$scope.appUninstall.error.password = true;
$scope.appUninstallForm.password.$setPristine();
$('#appUninstallPasswordInput').focus();
} else if (error && error.statusCode === 402) { // unpurchase failed
Client.error('Relogin to Cloudron App Store');
} else if (error) {
Client.error(error);
} else {