Skip to content

Commit fde3f46

Browse files
devversionalxhub
authored andcommittedMay 14, 2019
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 7b378a6 commit fde3f46

File tree

1 file changed

+1
-1
lines changed
  • packages/core/schematics/migrations/static-queries

1 file changed

+1
-1
lines changed
 

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

+1-1
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)
Please sign in to comment.