0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

[ci] format

This commit is contained in:
ematipico 2023-09-20 08:30:38 +00:00 committed by astrobot-houston
parent 2e1d5f8739
commit c49e865f4f

View file

@ -51,9 +51,9 @@ export default function (app: NodeApp, mode: Options['mode']) {
await writeWebResponse(app, res, response); await writeWebResponse(app, res, response);
} }
} catch (err: unknown) { } catch (err: unknown) {
const logger = app.getAdapterLogger() const logger = app.getAdapterLogger();
logger.error(`Could not render ${req.url}`) logger.error(`Could not render ${req.url}`);
console.error(err) console.error(err);
if (!res.headersSent) { if (!res.headersSent) {
res.writeHead(500, `Server error`); res.writeHead(500, `Server error`);
res.end(); res.end();