Skip to content

Commit

Permalink
show the file name in the error message
Browse files Browse the repository at this point in the history
Shows the name of the file that was attempted to be loaded while
ssr was set to "never"
  • Loading branch information
JeanJPNM committed Oct 26, 2021
1 parent 1b4720e commit be01755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kit/src/core/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ async function build_server(
css: css.map(dep => assets + ${s(prefix)} + dep),
js: js.map(dep => assets + ${s(prefix)} + dep),
styles
};` : 'throw new Error(\'Cannot use ssr when config.kit.ssr is "never"\')'}
};` : 'throw new Error(`Cannot evaluate pages on the server when config.kit.ssr is "never". (${file})`)'}
}
export function render(request, {
Expand Down

0 comments on commit be01755

Please sign in to comment.