add logs
This commit is contained in:
parent
3559cb776f
commit
3c8a9b75c1
1 changed files with 2 additions and 0 deletions
|
|
@ -48,12 +48,14 @@ angular.module('copayApp.services')
|
||||||
|
|
||||||
$log.debug('Profile is encrypted');
|
$log.debug('Profile is encrypted');
|
||||||
getUUID(function(uuid) {
|
getUUID(function(uuid) {
|
||||||
|
$log.debug('Device UUID:' + uuid);
|
||||||
if (!uuid)
|
if (!uuid)
|
||||||
return cb('Could not decrypt storage: could not get device ID');
|
return cb('Could not decrypt storage: could not get device ID');
|
||||||
|
|
||||||
try {
|
try {
|
||||||
text = sjcl.decrypt(uuid, text);
|
text = sjcl.decrypt(uuid, text);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
$log.warn('Decrypt error: ', e);
|
||||||
return cb('Could not decrypt storage: device ID mismatch');
|
return cb('Could not decrypt storage: device ID mismatch');
|
||||||
};
|
};
|
||||||
return cb(null, text);
|
return cb(null, text);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue