Skip to content

Commit 7616e20

Browse files
committed
write: live-dev-server: nicer 404 for no page found
1 parent c5192d9 commit 7616e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/write/build-modes/live-dev-server.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ export async function go({
337337
if (!Object.hasOwn(urlToPageMap, pathnameKey)) {
338338
response.writeHead(404, contentTypePlain);
339339
response.end(`No page found for: ${pathnameKey}\n`);
340-
if (loudResponses) console.log(`${requestHead} [404] ${pathname}`);
340+
if (loudResponses) console.log(`${requestHead} [404] ${pathname} (no page)`);
341341
return;
342342
}
343343

0 commit comments

Comments
 (0)