
Operator: Handle Error doesn't prevent spell crash when a propagated error reaches its target trick
gdavid04 opened this issue ยท 0 comments
When Operator: Handle Error targets a trick that receives a propagated error, the propagated error incorrectly crashes the spell instead of being suppressed by handle error.
Example spell:
{modsRequired:[{modName:"phi",modVersion:"1.19-DEV"},{modName:"psi",modVersion:"2.0.0"}],spellList:[{data:{key:"psi:selector_caster"},x:2,y:2},{data:{key:"psi:connector",params:{_target:1}},x:2,y:3},{data:{key:"psi:operator_entity_look",params:{_target:3}},x:3,y:2},{data:{key:"psi:operator_entity_position",params:{_target:3}},x:3,y:3},{data:{key:"phi:connector_bridge",params:{_direction:1}},x:3,y:4},{data:{key:"psi:operator_vector_divide",params:{_number2:4,_vector1:3}},x:4,y:2},{data:{key:"phi:operator_propagate_error",params:{_target:1}},x:4,y:3},{data:{key:"psi:trick_particle_trail",params:{_distance:4,_position:1,_ray:3,_time:0}},x:4,y:4},{data:{key:"phi:operator_error_catcher",params:{_fallback:0,_target:1}},x:4,y:5},{data:{constantValue:"0",key:"psi:constant_number"},x:5,y:2},{data:{constantValue:"8",key:"psi:constant_number"},x:5,y:4},{data:{key:"psi:trick_debug",params:{_number:0,_target:1}},x:5,y:5}],spellName:"Particle Trail",uuidLeast:-6735487102451806601L,uuidMost:4504655015629374121L,validSpell:1b}
Expected behavior:
The debug executes while the particle trail does not, outputting no error on the chat.
Actual behavior:
The spell crashes when the propagated error reaches the particle trail, logging it to the chat.