summaryrefslogtreecommitdiff
path: root/src/runtime.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime.ts')
-rw-r--r--src/runtime.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.ts b/src/runtime.ts
index d7f63183c..66a0657cf 100644
--- a/src/runtime.ts
+++ b/src/runtime.ts
@@ -59,7 +59,7 @@ async function load(config: RuntimeConfig, rawPathname: string | undefined): Pro
if (searchResult.statusCode === 404) {
try {
const result = await frontendSnowpack.loadUrl(reqPath);
-
+ if (!result) throw new Error(`Unable to load ${reqPath}`);
// success
return {
statusCode: 200,