diff --git a/src/Container.php b/src/Container.php index f288b9d..ae103e7 100644 --- a/src/Container.php +++ b/src/Container.php @@ -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);