Skip to content

Commit

Permalink
fix(routing): actually log routing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
UberMouse committed Feb 12, 2024
1 parent 574e544 commit 7392a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routing/handleLocationChange/handleLocationChange.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export function handleLocationChange(
broadcast(fourOhFour);
return;
} else if (match.type === "match-error") {
console.error("Error matching route for", location.pathname);
console.error("Error matching route for", location.pathname, match.error);
return;
} else {
console.log("[xstate-tree] matched route", match.event);
Expand Down

0 comments on commit 7392a8e

Please sign in to comment.