Skip to content

Commit

Permalink
fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
surefire committed Oct 10, 2022
1 parent 2c2e6b9 commit c4f84f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/kit/src/runtime/server/page/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ export async function call_action(event, actions) {
}

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

return action(event);
Expand Down

0 comments on commit c4f84f6

Please sign in to comment.