Show Unlock Error log after verifying wallet isn't unlocked already
This commit is contained in:
parent
52d45f697f
commit
14dd0227e0
1 changed files with 2 additions and 1 deletions
|
|
@ -190,7 +190,6 @@ module.exports = async (
|
|||
resolve(unlockResponse)
|
||||
})
|
||||
} catch (err) {
|
||||
logger.error('Unlock Error:', err)
|
||||
if (err.message === 'unknown service lnrpc.WalletUnlocker') {
|
||||
resolve({
|
||||
field: 'walletUnlocker',
|
||||
|
|
@ -199,6 +198,8 @@ module.exports = async (
|
|||
return
|
||||
}
|
||||
|
||||
logger.error('Unlock Error:', err)
|
||||
|
||||
reject({
|
||||
field: 'wallet',
|
||||
code: err.code,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue