Skip to content

Commit

Permalink
fix: balance parentheses in error about wrong content type for action (
Browse files Browse the repository at this point in the history
…#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>
  • Loading branch information
danieldiekmeier and benmccann committed Mar 30, 2023
1 parent cc1d666 commit 80e95e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/unlucky-garlics-yell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

fix: balance parentheses in error about wrong content type for action
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/page/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ async function call_action(event, actions) {

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

Expand Down

0 comments on commit 80e95e2

Please sign in to comment.