Skip to content

Commit

Permalink
clarify an exception that has confused a few people
Browse files Browse the repository at this point in the history
  • Loading branch information
mindplay-dk committed Sep 21, 2018
1 parent 0473972 commit 7ca6a82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function call($callback, $map = [])
public function create($class_name, $map = [])
{
if (! class_exists($class_name)) {
throw new InvalidArgumentException("unable to create component: {$class_name}");
throw new InvalidArgumentException("unable to create component: {$class_name} (autoloading failed)");
}

$reflection = new ReflectionClass($class_name);
Expand Down

0 comments on commit 7ca6a82

Please sign in to comment.