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
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue