Skip to content

Commit

Permalink
📖 Improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanc1 committed May 7, 2024
1 parent 87c2adc commit ff6bc74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion themes/article/app/routes/$slug[.json].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion themes/book/app/routes/($project)_.$slug[.json].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ff6bc74

Please sign in to comment.