Skip to content

Commit

Permalink
fix(app-router): include error stack trace in logger
Browse files Browse the repository at this point in the history
Fix typescript warning by showing error first, stack trace second.

closes aurelia/framework#926
  • Loading branch information
Barrie Treloar committed Sep 5, 2019
1 parent 14bf8c2 commit 72c3071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 72c3071

Please sign in to comment.