Skip to content

Commit

Permalink
fix(remix-server-runtime): update error message when route doesn't ha…
Browse files Browse the repository at this point in the history
…ve exports (#2779)
  • Loading branch information
jacob-ebey committed May 17, 2022
1 parent 9e5cd6d commit 89327a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/remix-server-runtime/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export async function callRouteLoader({
if (!loader) {
throw new Error(
`You made a ${request.method} request to ${request.url} but did not provide ` +
`a \`loader\` for route "${match.route.id}", so there is no way to handle the ` +
`request.`
`a default component or \`loader\` for route "${match.route.id}", ` +
`so there is no way to handle the request.`
);
}

Expand Down

0 comments on commit 89327a9

Please sign in to comment.