From 72c30712a6a6acda8e9c0e426eca3518876bce36 Mon Sep 17 00:00:00 2001 From: Barrie Treloar Date: Thu, 5 Sep 2019 16:24:11 +0930 Subject: [PATCH] fix(app-router): include error stack trace in logger Fix typescript warning by showing error first, stack trace second. closes aurelia/framework#926 --- src/app-router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-router.ts b/src/app-router.ts index 07aa9cd3..b9df8a7d 100644 --- a/src/app-router.ts +++ b/src/app-router.ts @@ -264,7 +264,7 @@ const processResult = ( if (!result.completed) { if (result.output instanceof Error) { - logger.error(result.output); + logger.error(result.output.toString(), result.output); } restorePreviousLocation(router);