I am trying to send error code into subprocess which is not attached to original subprocess.
I have found only one solution and it is to use signal symbol. I am not 100% sure about the solution so I have attached here solution whit error codes which is not valid
Error events propagate up scope when thrown until they are consumed.
In this case the error event is caught by the sub process error catch before it ever has a chance trigger the catch within the event sub process.