small fix for key + exception message
This commit is contained in:
parent
fb88b05463
commit
6ef1bca911
2 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ angular.module('copayApp.services').factory('mobileSecureStorageService', functi
|
|||
function (error) {
|
||||
$log.debug('mss get failed. ' + error);
|
||||
if (error.message === 'Failure in SecureStorage.get() - The specified item could not be found in the keychain' || // iOS
|
||||
error.message === 'Key [_SS_profile] not found.') { // Android
|
||||
error.message === 'Key [_SS_' + key + '] not found.') { // Android
|
||||
// The callback expects no error, but also no value, if it cannot be found.
|
||||
cb(null, null);
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ angular.module('copayApp.services')
|
|||
var profileString = profile.toObj();
|
||||
encryptionService.encrypt(profileString, function onProfileEncrypted(encryptionErr, encryptedProfile){
|
||||
if (encryptionErr) {
|
||||
$log.error('Failed to encrypt profile.', enctryptionErr);
|
||||
$log.error('Failed to encrypt profile.', encryptionErr);
|
||||
cb(encryptionErr, null);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue