Add throw

This commit is contained in:
brantje 2016-09-27 21:12:12 +02:00
parent f0a9a28984
commit f589282db0
2 changed files with 2 additions and 0 deletions

View file

@ -114,6 +114,7 @@ angular.module('passmanApp')
_loginToVault(vault, vault_key);
}
} catch (e) {
console.log(e)
$scope.error = 'Incorrect vault password!'
}
break;

View file

@ -111,6 +111,7 @@ angular.module('passmanApp')
credential[field] = JSON.parse(EncryptService.decryptString(fieldValue));
} catch (e){
console.log('Field' + field + ' in '+ credential.label +' could not be parsed! Value:'+ fieldValue)
throw e
}
}