mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 06:41:45 +08:00
fix(@angular/cli): error when local workspace cannot be loaded
This commit is contained in:
parent
4dcbf38989
commit
ecdc52cb30
@ -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.`);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user