diff --git a/packages/@angular/cli/models/workspace-loader.ts b/packages/@angular/cli/models/workspace-loader.ts index 893b799725..2d7512682d 100644 --- a/packages/@angular/cli/models/workspace-loader.ts +++ b/packages/@angular/cli/models/workspace-loader.ts @@ -47,7 +47,7 @@ export class WorkspaceLoader { if (workspaceFilePath) { return of(normalize(workspaceFilePath)); } else { - return of(null); + throw new Error(`Local workspace file ('angular.json') could not be found.`); } }