mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Also catch exceptions in init() method of module instances
This commit is contained in:
parent
ad00ac800b
commit
5b7ce90a3d
1 changed files with 8 additions and 1 deletions
|
|
@ -158,7 +158,14 @@ class ModuleObject extends BaseObject
|
|||
// Execute init
|
||||
if(method_exists($this, 'init'))
|
||||
{
|
||||
$this->init();
|
||||
try
|
||||
{
|
||||
$this->init();
|
||||
}
|
||||
catch (Rhymix\Framework\Exception $e)
|
||||
{
|
||||
$this->stop($e->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue