fix(@angular/cli): error when local workspace cannot be loaded

This commit is contained in:
Filipe Silva 2018-04-03 10:14:30 +01:00 committed by Hans
parent 4dcbf38989
commit ecdc52cb30

View File

@ -47,7 +47,7 @@ export class WorkspaceLoader {
if (workspaceFilePath) { if (workspaceFilePath) {
return of(normalize(workspaceFilePath)); return of(normalize(workspaceFilePath));
} else { } else {
return of(null); throw new Error(`Local workspace file ('angular.json') could not be found.`);
} }
} }