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:
Alan Agius
2021-08-31 15:02:19 +02:00
committed by Andrew Scott
parent 478131c519
commit 95f3aecc29
+1 -1
View File
@@ -1372,7 +1372,7 @@ export class Router {
t.resolve(true);
},
e => {
this.console.warn(`Unhandled Navigation Error: `);
this.console.warn(`Unhandled Navigation Error: ${e}`);
});
}