diff --git a/src/Testing/FactoryBuilder.php b/src/Testing/FactoryBuilder.php index 319c17ae..e208b0fe 100644 --- a/src/Testing/FactoryBuilder.php +++ b/src/Testing/FactoryBuilder.php @@ -140,7 +140,7 @@ public function make(array $attributes = []) protected function makeInstance(array $attributes = []) { if (!isset($this->definitions[$this->class][$this->name])) { - throw new InvalidArgumentException("Unable to locate factory with name [{$this->name}]."); + throw new InvalidArgumentException("Unable to locate factory with name [{$this->name}] [{$this->class}]."); } $definition = call_user_func($this->definitions[$this->class][$this->name], $this->faker, $attributes);