We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6602d90 commit 1db57d4Copy full SHA for 1db57d4
packages/schematics/angular/migrations/update-9/utils.ts
@@ -96,7 +96,7 @@ export function getWorkspace(host: Tree): JsonAstObject {
96
export function readJsonFileAsAstObject(host: Tree, path: string): JsonAstObject | undefined {
97
const configBuffer = host.read(path);
98
if (!configBuffer) {
99
- throw new SchematicsException(`Could not find (${path})`);
+ return undefined;
100
}
101
102
const content = configBuffer.toString();
0 commit comments