ActivityPub-federated video streaming platform using P2P directly in your web browser
Add error info on router error
Chocobozzzca0f030787a6
diff --git a/client/src/app/core/routing/redirect.service.ts b/client/src/app/core/routing/redirect.service.tsindex 575b3b2a18..1344458d55 100644--- a/client/src/app/core/routing/redirect.service.ts+++ b/client/src/app/core/routing/redirect.service.ts@@ -89,10 +89,10 @@ export class RedirectService {this.router.navigateByUrl(this.defaultRoute, { skipLocationChange }).then(() => this.redirectingToHomepage = false)- .catch(() => {+ .catch(err => {this.redirectingToHomepage = false- logger.error(`Cannot navigate to ${this.defaultRoute}, resetting default route to ${RedirectService.INIT_DEFAULT_ROUTE}`)+ logger.error(`Cannot navigate to ${this.defaultRoute}, resetting default route to ${RedirectService.INIT_DEFAULT_ROUTE}`, err)this.defaultRoute = RedirectService.INIT_DEFAULT_ROUTEreturn this.router.navigateByUrl(this.defaultRoute, { skipLocationChange })