Fix incorrect error location when R\F\Exception is thrown from inside an event handler

This commit is contained in:
Kijin Sung 2026-05-07 23:07:36 +09:00
parent 67a77ff4c8
commit 71b11c769d
3 changed files with 15 additions and 0 deletions

View file

@ -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;
}