Debugging wallet status issue
This commit is contained in:
parent
709c99536a
commit
1896353ff3
1 changed files with 4 additions and 2 deletions
|
|
@ -221,9 +221,11 @@ module.exports = (
|
||||||
walletStatus: walletStatus ? availableService.walletStatus : null
|
walletStatus: walletStatus ? availableService.walletStatus : null
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
logger.error(err);
|
||||||
|
const sanitizedMessage = sanitizeLNDError(err.message);
|
||||||
res.status(500).json({
|
res.status(500).json({
|
||||||
walletStatus: sanitizeLNDError(err.message),
|
walletExists: null,
|
||||||
code: err.code
|
walletStatus: sanitizedMessage ? sanitizedMessage : "An unknown error has occurred, please try restarting your LND and API servers"
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue