Skip to content

Commit 6ceb903

Browse files
devversionalxhub
authored andcommitted
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
1 parent f9fb921 commit 6ceb903

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/core/schematics/migrations/static-queries

‎packages/core/schematics/migrations/static-queries/index.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async function runStaticQueryMigration(
192192
`the update cannot use the template migration strategy. Please ensure ` +
193193
`there are no AOT compilation errors.`);
194194
}
195-
logger.error(e);
195+
logger.error(e.toString());
196196
logger.info(
197197
'Migration can be rerun with: "ng update @angular/core --from 7 --to 8 --migrate-only"');
198198
return [];

0 commit comments

Comments
 (0)