Skip to content

Commit b3da1b3

Browse files
Fix error description for removing consumer validation error (#69)
* Fix error description for removing consumer validation error * Add changeset
1 parent 847f200 commit b3da1b3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/perfect-tomatoes-stare.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 the error message around remove consumer input validation

src/SubscriptionManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export class SubscriptionManager {
328328
}
329329

330330
if (!utils.isAddress(consumerAddress)) {
331-
throw Error(`Adding consumer contract failed - invalid address ${consumerAddress}`)
331+
throw Error(`Removing consumer contract failed - invalid address ${consumerAddress}`)
332332
}
333333

334334
let subInfo

0 commit comments

Comments
 (0)