Improve error message.

One of the cases was not explained in the existing error message.

Fixes #3773
This commit is contained in:
mark_story 2013-04-19 12:13:58 -04:00
parent 0f3d28c6ea
commit 63b392a26b

View file

@ -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;
}