Skip to content

Commit a0bd6e9

Browse files
alan-agius4atscott
authored andcommitted
fix(router): add more context to Unhandled Navigation Error (#43291)
Previously, the error message was not added to `Unhandled Navigation Error` Before ``` main.js:1 Unhandled Navigation Errors: ``` After ``` main.js:1 Unhandled Navigation Errors: SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'http://localhost:4200/' cannot be created in a document with origin 'http://127.0.0.1:8080' and URL 'http://127.0.0.1:8080/'. ``` PR Close #43291
1 parent caecd18 commit a0bd6e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/router/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ export class Router {
13721372
t.resolve(true);
13731373
},
13741374
e => {
1375-
this.console.warn(`Unhandled Navigation Error: `);
1375+
this.console.warn(`Unhandled Navigation Error: ${e}`);
13761376
});
13771377
}
13781378

0 commit comments

Comments
 (0)