Skip to content

Commit

Permalink
fix(@angular/cli): avoid throwing on an empty project/target
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and hansl committed Jun 6, 2018
1 parent 5198b3d commit 4c4e408
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/angular/cli/models/architect-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ export abstract class ArchitectCommand extends Command<ArchitectCommandOptions>
}

if (!project) {
throw new Error('No project specified');
project = '';
}
if (!target) {
throw new Error('No project target specified');
target = '';
}

return {
Expand Down

0 comments on commit 4c4e408

Please sign in to comment.