mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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
This commit is contained in:
@@ -1372,7 +1372,7 @@ export class Router {
|
||||
t.resolve(true);
|
||||
},
|
||||
e => {
|
||||
this.console.warn(`Unhandled Navigation Error: `);
|
||||
this.console.warn(`Unhandled Navigation Error: ${e}`);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user