diff options
Diffstat (limited to 'src/runtime.ts')
-rw-r--r-- | src/runtime.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.ts b/src/runtime.ts index be609ed0a..330ca013b 100644 --- a/src/runtime.ts +++ b/src/runtime.ts @@ -224,7 +224,7 @@ async function load(config: RuntimeConfig, rawPathname: string | undefined): Pro }, }; } catch (err) { - if (err.code === 'parse-error') { + if (err.code === 'parse-error' || err instanceof SyntaxError) { return { statusCode: 500, type: 'parse-error', |