mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-06-10 14:37:13 +09:00
Fix incorrect error location when R\F\Exception is thrown from inside an event handler
This commit is contained in:
parent
67a77ff4c8
commit
71b11c769d
3 changed files with 15 additions and 0 deletions
|
|
@ -805,6 +805,10 @@ class ModuleObject extends BaseObject
|
|||
{
|
||||
$this->setError($triggerOutput->getError());
|
||||
$this->setMessage($triggerOutput->getMessage());
|
||||
if ($triggerOutput->get('rx_error_location'))
|
||||
{
|
||||
$this->add('rx_error_location', $triggerOutput->get('rx_error_location'));
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
@ -846,6 +850,10 @@ class ModuleObject extends BaseObject
|
|||
{
|
||||
$this->setError($triggerOutput->getError());
|
||||
$this->setMessage($triggerOutput->getMessage());
|
||||
if ($triggerOutput->get('rx_error_location'))
|
||||
{
|
||||
$this->add('rx_error_location', $triggerOutput->get('rx_error_location'));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue