summaryrefslogtreecommitdiff
path: root/ext/fetch/22_body.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/fetch/22_body.js')
-rw-r--r--ext/fetch/22_body.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fetch/22_body.js b/ext/fetch/22_body.js
index 82f41411d..a8f5deac9 100644
--- a/ext/fetch/22_body.js
+++ b/ext/fetch/22_body.js
@@ -151,7 +151,7 @@ class InnerBody {
* @returns {Promise<Uint8Array>}
*/
consume() {
- if (this.unusable()) throw new TypeError("Body already consumed.");
+ if (this.unusable()) throw new TypeError("Body already consumed");
if (
ObjectPrototypeIsPrototypeOf(
ReadableStreamPrototype,
@@ -372,7 +372,7 @@ function packageData(bytes, type, mimeType) {
const boundary = mimeType.parameters.get("boundary");
if (boundary === null) {
throw new TypeError(
- "Missing boundary parameter in mime type of multipart formdata.",
+ "Cannot turn into form data: missing boundary parameter in mime type of multipart form data",
);
}
return parseFormData(chunkToU8(bytes), boundary);