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

Skip to content

Commit 38b4d5c

Browse files
committed
FrameworkBundle: catch InvalidArgumentException instead of generic \Exception
1 parent 1fa5ece commit 38b4d5c

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
@@ -92,7 +92,7 @@ public function load($resource, $type = null)
9292
if ($controller = $route->getDefault('_controller')) {
9393
try {
9494
$controller = $this->parser->parse($controller);
95-
} catch (\Exception $e) {
95+
} catch (\InvalidArgumentException $e) {
9696
// unable to optimize unknown notation
9797
}
9898

0 commit comments

Comments
 (0)
0