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

@ -1355,6 +1355,7 @@ class ModuleHandler extends Handler
catch (Rhymix\Framework\Exception $e)
{
$output = new BaseObject(-2, $e->getMessage());
$output->add('rx_error_location', $e->getUserFileAndLine());
}
if ($trigger_name !== 'common.flushDebugInfo')
@ -1391,6 +1392,7 @@ class ModuleHandler extends Handler
catch (Rhymix\Framework\Exception $e)
{
$output = new BaseObject(-2, $e->getMessage());
$output->add('rx_error_location', $e->getUserFileAndLine());
}
if ($trigger_name !== 'common.writeSlowlog')