Skip to content

Commit

Permalink
Update error messages to reference React Router instead of Remix
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Oct 16, 2024
1 parent 13df3ce commit bdbb169
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-router-dev/invariant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function invariant<T>(
export default function invariant(value: any, message?: string) {
if (value === false || value === null || typeof value === "undefined") {
console.error(
"The following error is a bug in Remix; please open an issue! https://github.com/remix-run/remix/issues/new"
"The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
);
throw new Error(message);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/lib/server-runtime/invariant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function invariant<T>(
export default function invariant(value: any, message?: string) {
if (value === false || value === null || typeof value === "undefined") {
console.error(
"The following error is a bug in Remix; please open an issue! https://github.com/remix-run/remix/issues/new"
"The following error is a bug in React Router; please open an issue! https://github.com/remix-run/react-router/issues/new/choose"
);
throw new Error(message);
}
Expand Down

0 comments on commit bdbb169

Please sign in to comment.