Skip to content
This repository was archived by the owner on Dec 21, 2021. It is now read-only.

Commit 01840c3

Browse files
committed
Better error message
1 parent 02d4dbb commit 01840c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dataunion/DataUnion.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -626,6 +626,7 @@ export class DataUnion {
626626
if (waitUntilTransportIsComplete) {
627627
log(`Waiting for balance ${balanceBefore.toString()} to change`)
628628
await until(async () => !(await getBalanceFunc()).eq(balanceBefore), retryTimeoutMs, pollingIntervalMs)
629+
.catch((e) => { throw e.message.startsWith('Timeout') ? new Error(`Timeout: Bridge did not transport withdraw message as expected. Fix: DataUnion.transportMessage("${messageHash}")`) : e })
629630
return null
630631
}
631632

0 commit comments

Comments
 (0)