Skip to content
Permalink
Browse files

Improve error message.

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

Fixes #3773
  • Loading branch information...
markstory committed Apr 19, 2013
1 parent 0f3d28c commit 63b392a26b2b4fc8d0936ad432491a273fc79dd7
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Routing/Router.php
@@ -194,7 +194,7 @@ protected static function _validateRouteClass($routeClass) {
$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;
}

0 comments on commit 63b392a

Please sign in to comment.
You can’t perform that action at this time.