aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/module/requirements/module.php
diff options
context:
space:
mode:
authorCHItA <mate.bartus@gmail.com>2015-06-05 17:43:30 +0200
committerMate Bartus <mate.bartus@gmail.com>2015-07-08 01:28:01 +0200
commit1b81bf5b2370c045a6369705d2a11a2b35fe2281 (patch)
treee1b2f4205fa3029734fb8fb909df067eae56cfed /phpBB/install/module/requirements/module.php
parent0dc6029bfed10fac1a09a4fd8de7d1b31407693a (diff)
downloadforums-1b81bf5b2370c045a6369705d2a11a2b35fe2281.tar
forums-1b81bf5b2370c045a6369705d2a11a2b35fe2281.tar.gz
forums-1b81bf5b2370c045a6369705d2a11a2b35fe2281.tar.bz2
forums-1b81bf5b2370c045a6369705d2a11a2b35fe2281.tar.xz
forums-1b81bf5b2370c045a6369705d2a11a2b35fe2281.zip
[ticket/13740] Add better progress handling, also add log messages
PHPBB3-13740
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++;