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:
parent
f9fb921f91
commit
6ceb9034dc
|
@ -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 [];
|
||||
|
|
Loading…
Reference in New Issue