Skip to content

Commit 4aed958

Browse files
author
Sander De la Marche
committed
Shorten error message
1 parent e0f0372 commit 4aed958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Twig/PaginatorRuntime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function renderPagination(Paginator $paginator): string
2424
$request = $this->getRequest();
2525

2626
if (null !== $this->requestStack->getParentRequest()) {
27-
throw new \RuntimeException('The request aware route generator can not guess the route when used in a sub-request, pass the "routeName" option to use this generator.');
27+
throw new \RuntimeException('We can not guess the route when used in a sub-request');
2828
}
2929

3030
$route = $request->attributes->get('_route');

0 commit comments

Comments
 (0)