diff --git a/src/Dispatcher/Dispatcher.php b/src/Dispatcher/Dispatcher.php index a07f304..0ea50f5 100644 --- a/src/Dispatcher/Dispatcher.php +++ b/src/Dispatcher/Dispatcher.php @@ -51,13 +51,13 @@ function dispatch( RouteInterface $route ){ $fqnsc .= trim($route->getController(), "\\"); if(!class_exists($fqnsc)){ - throw new ControllerNotFoundException; + throw new ControllerNotFoundException("Requested: {$fqnsc}"); } $instance = new \ReflectionClass($fqnsc); if(!$instance->implementsInterface(__NAMESPACE__ . "\\DispatchableInterface")){ - throw new NonDispatchableObjectException; + throw new NonDispatchableObjectException("Requested: {$fqnsc}"); } $object = $instance->newInstance($this->di, $route);