Skip to content

Commit

Permalink
improve timeout error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
KuphJr committed Sep 27, 2023
1 parent daac368 commit 646749b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/serious-llamas-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/functions-toolkit': patch
---

Improve log msg for timeouts
4 changes: 3 additions & 1 deletion src/SubscriptionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,9 @@ export class SubscriptionManager {
: await this.functionsRouter.timeoutRequests(requestCommitments)
return timeoutTx.wait(txOptions?.confirmations)
} catch (error) {
throw Error(`Failed to timeout requests:\n${error}`)
throw Error(
`Failed to timeout requests. Ensure commitments are correct, requests have not been fulfilled and were sent more than 5 minutes ago:\n${error}`,
)
}
}

Expand Down

0 comments on commit 646749b

Please sign in to comment.