Skip to content

Commit

Permalink
add HookReturnCode to error message (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
tequdev authored Jul 30, 2024
1 parent aa6f80c commit 9a759f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Xrpld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export class Xrpld {
txResponse?.result?.meta as TransactionMetadata
)
if (hookExecutions.executions.length === 1) {
throw Error(hookExecutions.executions[0].HookReturnString)
throw Error(
`${hookExecutions.executions[0].HookReturnCode}: ${hookExecutions.executions[0].HookReturnString}`
)
}
throw Error(JSON.stringify(hookExecutions.executions))
}
Expand Down

0 comments on commit 9a759f4

Please sign in to comment.