mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-22 23:15:56 +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) {
|
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.`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user