diff --git a/src/Request.php b/src/Request.php index 292dcad..e60bc21 100644 --- a/src/Request.php +++ b/src/Request.php @@ -310,7 +310,7 @@ class Request else { if ( ! $param->isOptional()) - throw new \Exception('Unable to find NON-optional parameter `' . $param->name . '` for route controller/handler: ' . var_export($this->route, true)); + throw new \Exception('Unable to find NON-optional parameter `' . $param->name . ($param->hasType() ? '` of type `' . $param->getType() : null) . '` for route controller/handler: ' . var_export($this->route, true)); $args[] = $param->getDefaultValue(); } }