From be017552e20d09aad22df2a4fc561659e6eb6582 Mon Sep 17 00:00:00 2001 From: JeanJPNM <61994401+JeanJPNM@users.noreply.github.com> Date: Tue, 26 Oct 2021 07:42:10 -0300 Subject: [PATCH] show the file name in the error message Shows the name of the file that was attempted to be loaded while ssr was set to "never" --- packages/kit/src/core/build/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kit/src/core/build/index.js b/packages/kit/src/core/build/index.js index 7fdde8c0b292..a3d215cffdcb 100644 --- a/packages/kit/src/core/build/index.js +++ b/packages/kit/src/core/build/index.js @@ -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, {