Skip to content

Commit 7392a8e

Browse files
committed
fix(routing): actually log routing errors
1 parent 574e544 commit 7392a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routing/handleLocationChange/handleLocationChange.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function handleLocationChange(
3434
broadcast(fourOhFour);
3535
return;
3636
} else if (match.type === "match-error") {
37-
console.error("Error matching route for", location.pathname);
37+
console.error("Error matching route for", location.pathname, match.error);
3838
return;
3939
} else {
4040
console.log("[xstate-tree] matched route", match.event);

0 commit comments

Comments
 (0)