Skip to content
Permalink
Browse files

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
  • Loading branch information...
devversion authored and alxhub committed May 14, 2019
1 parent f9fb921 commit 6ceb9034dc99e5e9f791c988eda2cc9ce99bc2e1
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/core/schematics/migrations/static-queries/index.ts
@@ -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 [];

0 comments on commit 6ceb903

Please sign in to comment.
You can’t perform that action at this time.