8000 FrameworkBundle: catch InvalidArgumentException instead of generic \E… · symfony/symfony@76f5f90 · GitHub
[go: up one dir, main page]

Skip to content

Commit 76f5f90

Browse files
committed
FrameworkBundle: catch InvalidArgumentException instead of generic \Exception
1 parent 48c3cf9 commit 76f5f90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Routing/DelegatingLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function load($resource, $type = null)
9595
if ($controller = $route->getDefault('_controller')) {
9696
try {
9797
$controller = $this->parser->parse($controller);
98-
} catch (\Exception $e) {
98+
} catch (\InvalidArgumentException $e) {
9999
// unable to optimize unknown notation
100100
}
101101

0 commit comments

Comments
 (0)
0