From 63b392a26b2b4fc8d0936ad432491a273fc79dd7 Mon Sep 17 00:00:00 2001 From: mark_story Date: Fri, 19 Apr 2013 12:13:58 -0400 Subject: [PATCH] Improve error message. One of the cases was not explained in the existing error message. Fixes #3773 --- lib/Cake/Routing/Router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 20f374f72ee..740a439f35e 100644 --- a/lib/Cake/Routing/Router.php +++ b/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; }