[ci] format
This commit is contained in:
parent
6a27e932d6
commit
1283cfd19f
1 changed files with 1 additions and 4 deletions
|
@ -282,10 +282,7 @@ export class App {
|
||||||
* If it is a known error code, try sending the according page (e.g. 404.astro / 500.astro).
|
* If it is a known error code, try sending the according page (e.g. 404.astro / 500.astro).
|
||||||
* This also handles pre-rendered /404 or /500 routes
|
* This also handles pre-rendered /404 or /500 routes
|
||||||
*/
|
*/
|
||||||
async #renderError(
|
async #renderError(request: Request, { status, response: originalResponse }: RenderErrorOptions) {
|
||||||
request: Request,
|
|
||||||
{ status, response: originalResponse }: RenderErrorOptions
|
|
||||||
) {
|
|
||||||
const errorRouteData = matchRoute('/' + status, this.#manifestData);
|
const errorRouteData = matchRoute('/' + status, this.#manifestData);
|
||||||
const url = new URL(request.url);
|
const url = new URL(request.url);
|
||||||
if (errorRouteData) {
|
if (errorRouteData) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue