mirror of
https://github.com/nextcloud/passman.git
synced 2025-01-27 01:39:56 +08:00
Add throw
This commit is contained in:
parent
f0a9a28984
commit
f589282db0
2 changed files with 2 additions and 0 deletions
|
@ -114,6 +114,7 @@ angular.module('passmanApp')
|
|||
_loginToVault(vault, vault_key);
|
||||
}
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
$scope.error = 'Incorrect vault password!'
|
||||
}
|
||||
break;
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue