fix(core): static-query migration errors not printed properly (#30458)

Apparently the devkit logger is not able to properly print
out error objects, so we need to convert them to a string
before in order to make the error visible to the user.

This is not testable without an e2e test that validates the CLI
terminal output.

PR Close #30458
This commit is contained in:
Paul Gschwendtner 2019-05-14 19:59:26 +02:00 committed by Alex Rickabaugh
parent f9fb921f91
commit 6ceb9034dc
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ async function runStaticQueryMigration(
`the update cannot use the template migration strategy. Please ensure ` +
`there are no AOT compilation errors.`);
}
logger.error(e);
logger.error(e.toString());
logger.info(
'Migration can be rerun with: "ng update @angular/core --from 7 --to 8 --migrate-only"');
return [];