mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-04 13:05:49 +00:00
Make the unknown submitAndWait error more verbose (#2056)
* Make the unknown submitAndWait error more verbose
This commit is contained in:
@@ -6,6 +6,7 @@ Subscribe to [the **xrpl-announce** mailing list](https://groups.google.com/g/xr
|
||||
### Fixed
|
||||
* `Wallet.fromMnemonic` now allows lowercase for RFC1751 mnemonics (#2046)
|
||||
* `Wallet.fromMnemonic` detects when an invalid encoding is provided, and throws an error
|
||||
* Made unexpected errors in `submitAndWait` more verbose to make them easier to debug.
|
||||
|
||||
## 2.3.1 (2022-06-27)
|
||||
### Fixed
|
||||
|
||||
@@ -157,7 +157,11 @@ async function waitForFinalTransactionOutcome(
|
||||
submissionResult,
|
||||
)
|
||||
}
|
||||
throw new Error(`${message} \n Preliminary result: ${submissionResult}.`)
|
||||
throw new Error(
|
||||
`${message} \n Preliminary result: ${submissionResult}.\nFull error details: ${String(
|
||||
error,
|
||||
)}`,
|
||||
)
|
||||
})
|
||||
|
||||
if (txResponse.result.validated) {
|
||||
|
||||
Reference in New Issue
Block a user