Skip to content

Commit 3fa762e

Browse files
KhafraDevronag
authored andcommitted
fix: update error messages
1 parent a6cc7e4 commit 3fa762e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fetch/formdata.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,13 +231,13 @@ class FormData {
231231

232232
if (arguments.length < 1) {
233233
throw new TypeError(
234-
`Failed to execute 'forEach' on 'Headers': 1 argument required, but only ${arguments.length} present.`
234+
`Failed to execute 'forEach' on 'FormData': 1 argument required, but only ${arguments.length} present.`
235235
)
236236
}
237237

238238
if (typeof callbackFn !== 'function') {
239239
throw new TypeError(
240-
"Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'."
240+
"Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'."
241241
)
242242
}
243243

0 commit comments

Comments
 (0)