Skip to content

Commit 646749b

Browse files
committed
improve timeout error msg
1 parent daac368 commit 646749b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/serious-llamas-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@chainlink/functions-toolkit': patch
3+
---
4+
5+
Improve log msg for timeouts

src/SubscriptionManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ export class SubscriptionManager {
464464
: await this.functionsRouter.timeoutRequests(requestCommitments)
465465
return timeoutTx.wait(txOptions?.confirmations)
466466
} catch (error) {
467-
throw Error(`Failed to timeout requests:\n${error}`)
467+
throw Error(
468+
`Failed to timeout requests. Ensure commitments are correct, requests have not been fulfilled and were sent more than 5 minutes ago:\n${error}`,
469+
)
468470
}
469471
}
470472

0 commit comments

Comments
 (0)