Skip to content

Commit

Permalink
fix: update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
KhafraDev authored and ronag committed Jun 12, 2022
1 parent a6cc7e4 commit 3fa762e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fetch/formdata.js
Expand Up @@ -231,13 +231,13 @@ class FormData {

if (arguments.length < 1) {
throw new TypeError(
`Failed to execute 'forEach' on 'Headers': 1 argument required, but only ${arguments.length} present.`
`Failed to execute 'forEach' on 'FormData': 1 argument required, but only ${arguments.length} present.`
)
}

if (typeof callbackFn !== 'function') {
throw new TypeError(
"Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'."
"Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'."
)
}

Expand Down

0 comments on commit 3fa762e

Please sign in to comment.