mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Merge pull request #29398 from nextcloud/backport/29378/stable22
[stable22] Make the route name error more helpful
This commit is contained in:
commit
daeeae4ae0
2 changed files with 2 additions and 2 deletions
|
|
@ -130,7 +130,7 @@ class RouteConfig {
|
|||
|
||||
$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');
|
||||
}
|
||||
[$controller, $action] = $split;
|
||||
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ class RouteParser {
|
|||
|
||||
$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');
|
||||
}
|
||||
[$controller, $action] = $split;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue