As a developer I have no clue what "Invalid route name" means. If the
exception gives me a hint I might find it easier to figure out why my
route triggers this error.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
$split = explode('#', $name, 2);
if (count($split) !== 2) {
- throw new \UnexpectedValueException('Invalid route name');
+ throw new \UnexpectedValueException('Invalid route name: use the format foo#bar to reference FooController::bar');
}
list($controller, $action) = $split;
$split = explode('#', $name, 2);
if (count($split) !== 2) {
- throw new \UnexpectedValueException('Invalid route name');
+ throw new \UnexpectedValueException('Invalid route name: use the format foo#bar to reference FooController::bar');
}
list($controller, $action) = $split;