Skip to content

Commit

Permalink
Improve error message.
Browse files Browse the repository at this point in the history
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 63b392a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Routing/Router.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 63b392a

Please sign in to comment.