diff --git a/packages/kit/src/runtime/server/page/actions.js b/packages/kit/src/runtime/server/page/actions.js index b4578a08d17f..02c038d5e814 100644 --- a/packages/kit/src/runtime/server/page/actions.js +++ b/packages/kit/src/runtime/server/page/actions.js @@ -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);