mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
[ci] format
This commit is contained in:
parent
8106178043
commit
071c329f25
1 changed files with 4 additions and 2 deletions
|
@ -38,10 +38,12 @@ export async function renderEndpoint(
|
||||||
// 404. Should be handled by 404.astro route if possible.
|
// 404. Should be handled by 404.astro route if possible.
|
||||||
return new Response(null, { status: 404 });
|
return new Response(null, { status: 404 });
|
||||||
}
|
}
|
||||||
if (typeof handler !== "function") {
|
if (typeof handler !== 'function') {
|
||||||
logger.error(
|
logger.error(
|
||||||
'router',
|
'router',
|
||||||
`The route "${url.pathname}" exports a value for the method "${method}", but it is of the type ${typeof handler} instead of a function.`
|
`The route "${
|
||||||
|
url.pathname
|
||||||
|
}" exports a value for the method "${method}", but it is of the type ${typeof handler} instead of a function.`
|
||||||
);
|
);
|
||||||
return new Response(null, { status: 500 });
|
return new Response(null, { status: 500 });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue