Skip to content

Commit bb70fe2

Browse files
authored
Update ComponentDispatcher.php (joomla#45646)
1 parent ff326d5 commit bb70fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/src/Dispatcher/ComponentDispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public function getController(string $name, string $client = '', array $config =
171171

172172
// Check if the controller could be created
173173
if (!$controller) {
174-
throw new \InvalidArgumentException(Text::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER_CLASS', $name));
174+
throw new \InvalidArgumentException(Text::sprintf('JLIB_APPLICATION_ERROR_INVALID_CONTROLLER_CLASS', $name), 404);
175175
}
176176

177177
return $controller;

0 commit comments

Comments
 (0)