feat: show zap request failure reason
This commit is contained in:
parent
80a9b8a34d
commit
520649e862
1 changed files with 2 additions and 2 deletions
|
|
@ -91,9 +91,9 @@ class LightningService {
|
|||
if (zapRequestResBody.error) {
|
||||
throw new Error(zapRequestResBody.message)
|
||||
}
|
||||
const { pr, verify } = zapRequestResBody
|
||||
const { pr, verify, reason } = zapRequestResBody
|
||||
if (!pr) {
|
||||
throw new Error('Failed to create invoice')
|
||||
throw new Error(reason ?? 'Failed to create invoice')
|
||||
}
|
||||
|
||||
if (this.provider) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue