Skip to content

Commit 89327a9

Browse files
authoredMay 17, 2022
fix(remix-server-runtime): update error message when route doesn't have exports (#2779)
1 parent 9e5cd6d commit 89327a9

File tree

1 file changed

+2
-2
lines changed
  • packages/remix-server-runtime

1 file changed

+2
-2
lines changed
 

‎packages/remix-server-runtime/data.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ export async function callRouteLoader({
7272
if (!loader) {
7373
throw new Error(
7474
`You made a ${request.method} request to ${request.url} but did not provide ` +
75-
`a \`loader\` for route "${match.route.id}", so there is no way to handle the ` +
76-
`request.`
75+
`a default component or \`loader\` for route "${match.route.id}", ` +
76+
`so there is no way to handle the request.`
7777
);
7878
}
7979

0 commit comments

Comments
 (0)
Please sign in to comment.