Skip to content

Commit 80e95e2

Browse files
fix: balance parentheses in error about wrong content type for action (#9513)
* Balance parantheses * Add changeset * Update .changeset/unlucky-garlics-yell.md Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --------- Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
1 parent cc1d666 commit 80e95e2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/unlucky-garlics-yell.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
fix: balance parentheses in error about wrong content type for action

packages/kit/src/runtime/server/page/actions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ async function call_action(event, actions) {
214214

215215
if (!is_form_content_type(event.request)) {
216216
throw new Error(
217-
`Actions expect form-encoded data (received ${event.request.headers.get('content-type')}`
217+
`Actions expect form-encoded data (received ${event.request.headers.get('content-type')})`
218218
);
219219
}
220220

0 commit comments

Comments
 (0)