Skip to content

Commit

Permalink
Add better error message when target does not exist (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu authored Sep 27, 2024
1 parent 8e2d176 commit a62a698
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Build/BuildRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ public function getBuilders($target = null)

protected function getBuildersForTarget($target, &$list = [], &$resolved = [])
{
$builders = [];
$builder = $this->builders[$target];
$builder = $this->getBuilder($target);
$dependencies = $builder->getDependencies();

foreach ($dependencies as $dependency) {
Expand Down

0 comments on commit a62a698

Please sign in to comment.