@sveltejs/kit 1.30.1 → 1.30.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -216,12 +216,11 @@ async function call_action(event, actions) {
|
|
|
216
216
|
|
|
217
217
|
const action = actions[name];
|
|
218
218
|
if (!action) {
|
|
219
|
-
throw
|
|
219
|
+
throw new Error(`No action with name '${name}' found`);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
if (!is_form_content_type(event.request)) {
|
|
223
|
-
throw
|
|
224
|
-
415,
|
|
223
|
+
throw new Error(
|
|
225
224
|
`Actions expect form-encoded data (received ${event.request.headers.get('content-type')})`
|
|
226
225
|
);
|
|
227
226
|
}
|
package/src/version.js
CHANGED