Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Nov 16, 2021
1 parent e029320 commit fc7af49
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -80,7 +80,7 @@ export function getRender({
query,
renderOpts
)
} catch (err) {
} catch (err: any) {
const errorRes = { statusCode: 500, err }
try {
result = await renderToHTML(
Expand All @@ -96,10 +96,10 @@ export function getRender({
getStaticPaths: errorMod.getStaticPaths,
}
)
} catch (err: any) {
} catch (err2: any) {
return new Response(
(
err || 'An error occurred while rendering ' + pathname + '.'
err2 || 'An error occurred while rendering ' + pathname + '.'
).toString(),
{
status: 500,
Expand Down

0 comments on commit fc7af49

Please sign in to comment.