summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-04-29 20:32:53 -0500
committerGravatar GitHub <noreply@github.com> 2021-04-29 20:32:53 -0500
commit1e849689e48e7a2e67e9bc4bf47294e09e606e1d (patch)
treef9512d124c322d1cb9fab13ec4efbfef7554961f /src
parent2a23e7e292efbe53be2c8b3ada0bfd2e57bfd0ba (diff)
downloadastro-1e849689e48e7a2e67e9bc4bf47294e09e606e1d.tar.gz
astro-1e849689e48e7a2e67e9bc4bf47294e09e606e1d.tar.zst
astro-1e849689e48e7a2e67e9bc4bf47294e09e606e1d.zip
chore: update to snowpack@3.3.7 (#150)
Diffstat (limited to 'src')
-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,