From ff6bc7467561000b62ed8291473b78e4b609f444 Mon Sep 17 00:00:00 2001 From: Rowan Cockett Date: Mon, 6 May 2024 23:23:42 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=96=20Improve=20error=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/article/app/routes/$slug[.json].tsx | 2 +- themes/book/app/routes/($project)_.$slug[.json].tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/article/app/routes/$slug[.json].tsx b/themes/article/app/routes/$slug[.json].tsx index fc5311f1a..9d9ae8bee 100644 --- a/themes/article/app/routes/$slug[.json].tsx +++ b/themes/article/app/routes/$slug[.json].tsx @@ -17,7 +17,7 @@ export const loader: LoaderFunction = async ({ request, params }) => { // Handle /myst.xref.json as slug if (slug === 'myst.xref') { const xref = await getMystXrefJson(); - if (!xref) return new Response('MyST Xref not found', { status: 404 }); + if (!xref) return new Response('myst.xref.json not found', { status: 404 }); return json(xref); } const data = await getPage(request, { slug }).catch(() => null); diff --git a/themes/book/app/routes/($project)_.$slug[.json].tsx b/themes/book/app/routes/($project)_.$slug[.json].tsx index 298440ad7..62bb25d36 100644 --- a/themes/book/app/routes/($project)_.$slug[.json].tsx +++ b/themes/book/app/routes/($project)_.$slug[.json].tsx @@ -18,7 +18,7 @@ export const loader: LoaderFunction = async ({ request, params }) => { // Handle /myst.xref.json as slug if (project === undefined && slug === 'myst.xref') { const xref = await getMystXrefJson(); - if (!xref) return new Response('MyST Xref not found', { status: 404 }); + if (!xref) return new Response('myst.xref.json not found', { status: 404 }); return json(xref); } const config = await getConfig();