aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/module/requirements/module.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/install/module/requirements/module.php')
-rw-r--r--phpBB/install/module/requirements/module.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/phpBB/install/module/requirements/module.php b/phpBB/install/module/requirements/module.php
index f3d1cc71ec..5de6bd70b9 100644
--- a/phpBB/install/module/requirements/module.php
+++ b/phpBB/install/module/requirements/module.php
@@ -34,8 +34,15 @@ class module extends \phpbb\install\module_base
}
// Recover task to be executed
- /** @var \phpbb\install\task_interface $task */
- $task = $this->container->get($this->task_collection[$task_index]);
+ try
+ {
+ /** @var \phpbb\install\task_interface $task */
+ $task = $this->container->get($this->task_collection[$task_index]);
+ }
+ catch (InvalidArgumentException $e)
+ {
+ throw new task_not_found_exception($this->task_collection[$task_index]);
+ }
// Iterate to the next task
$task_index++;