Improve error message in public key verifier

This commit is contained in:
Tankred Hase 2015-04-14 17:59:26 +02:00
parent 1ffcaf5487
commit 9841a59a9e
2 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@ var PublicKeyVerifierCtrl = function($scope, $location, $q, $timeout, $interval,
return $q(function(resolve) {
// updates the GUI
$scope.errMsg = undefined;
resolve();
}).then(function() {
@ -29,7 +30,7 @@ var PublicKeyVerifierCtrl = function($scope, $location, $q, $timeout, $interval,
return success();
}).catch(function(error) {
$scope.errMsg = error.message; // display error
$scope.errMsg = error.message + ' Retrying in ' + RETRY_INTERVAL / 1000 + ' seconds...'; // display error
scheduleVerification(); // schedule next verification attempt
});

View File

@ -95,7 +95,7 @@ PublickeyVerifier.prototype.verify = function() {
if (!verificationSuccessful) {
// nothing unexpected went wrong, but no public key could be verified
throw new Error('Could not verify public key');
throw new Error('Could not verify public key.');
}
resolve(); // we're done