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 35e9092 commit 08840dd
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 08840dd

Please sign in to comment.