add warning for old wallets
This commit is contained in:
parent
dd0dc9c6ad
commit
29bbfa184c
9 changed files with 8 additions and 48 deletions
|
|
@ -163,7 +163,7 @@ Storage.prototype.getFirst = function(prefix, cb) {
|
|||
});
|
||||
if (keys.length === 0) return cb(new Error('not found'));
|
||||
self._read(keys[0], function(v) {
|
||||
if (_.isNull(v)) return cb(new Error('Could not decrypt data'));
|
||||
if (_.isNull(v)) return cb(new Error('Could not decrypt data'), null, keys[0]);
|
||||
return cb(null, v, keys[0]);
|
||||
})
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue