Skip to content

Commit

Permalink
Fix route formatting in error message (#8311)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtescher committed Jan 5, 2023
1 parent 63fdc20 commit 0a1e137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/runtime/server/page/load_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export async function load_data({
const included = resolve_opts.filterSerializedResponseHeaders(lower, value);
if (!included) {
throw new Error(
`Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://kit.svelte.dev/docs/hooks#server-hooks-handle (at ${event.route})`
`Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://kit.svelte.dev/docs/hooks#server-hooks-handle (at ${event.route.id})`
);
}
}
Expand Down

0 comments on commit 0a1e137

Please sign in to comment.