Skip to content

Commit ecdc52c

Browse files
filipesilvahansl
authored andcommitted
fix(@angular/cli): error when local workspace cannot be loaded
1 parent 4dcbf38 commit ecdc52c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/@angular/cli/models/workspace-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export class WorkspaceLoader {
4747
if (workspaceFilePath) {
4848
return of(normalize(workspaceFilePath));
4949
} else {
50-
return of(null);
50+
throw new Error(`Local workspace file ('angular.json') could not be found.`);
5151
}
5252
}
5353

0 commit comments

Comments
 (0)