Skip to content

Commit

Permalink
fix(@angular/cli): print schematic errors correctly
Browse files Browse the repository at this point in the history
Previously, the errors were JSON stringified (https://github.com/angular/angular-cli/blob/main/packages/angular/cli/lib/cli/index.ts#L80) which caused them not to be displayed correctly.

Closes #23141
  • Loading branch information
alan-agius4 committed May 17, 2022
1 parent 2b41802 commit f3e2969
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ export abstract class SchematicsCommandModule
if (err instanceof UnsuccessfulWorkflowExecution) {
// "See above" because we already printed the error.
logger.fatal('The Schematic workflow failed. See above.');

return 1;
} else {
throw err;
logger.fatal(err.message);
}

return 1;
} finally {
unsubscribe();
}
Expand Down

0 comments on commit f3e2969

Please sign in to comment.