mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Improve error message.
One of the cases was not explained in the existing error message. Fixes #3773
This commit is contained in:
parent
0f3d28c6ea
commit
63b392a26b
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class Router {
|
|||
$routeClass !== 'CakeRoute' &&
|
||||
(!class_exists($routeClass) || !is_subclass_of($routeClass, 'CakeRoute'))
|
||||
) {
|
||||
throw new RouterException(__d('cake_dev', 'Route classes must extend CakeRoute'));
|
||||
throw new RouterException(__d('cake_dev', 'Route class not found, or route class is not a subclass of CakeRoute'));
|
||||
}
|
||||
return $routeClass;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue