Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Jun 19, 2024
1 parent 9042be0 commit 5c56324
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ export class App {
request,
routeData: errorRouteData,
status,
props: { error }
props: { error },
});
const response = await renderContext.render(await mod.page());
return this.#mergeResponses(response, originalResponse);
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/src/vite-plugin-astro-server/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ export async function handleRoute({
logger.error('router', err.stack || err.message);
const filePath500 = new URL(`./${custom500.component}`, config.root);
const preloaded500Component = await pipeline.preload(custom500, filePath500);
renderContext.props.error = err;
renderContext.props.error = err;
response = await renderContext.render(preloaded500Component);
status = 500;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/test/custom-500.test.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import assert from 'node:assert/strict';
import { renameSync } from 'node:fs';
import { afterEach, describe, it } from 'node:test';
import * as cheerio from 'cheerio';
import { loadFixture } from './test-utils.js';
import testAdapter from './test-adapter.js';
import { renameSync } from 'node:fs';
import { loadFixture } from './test-utils.js';

describe('Custom 500', () => {
/** @type {Awaited<ReturnType<typeof loadFixture>>} */
Expand Down

0 comments on commit 5c56324

Please sign in to comment.