Faults thrown in the spawn primitive are discarded
This is annoying, because if a fault happens the programmer is unable to know that it happened.
Expected behaviour
Running the code below I would expect:
- The first fault thrown to be logged and execution is stopped (like what happens with the parallel operator),
- Or all faults thrown to be logged and execution is stopped.
service test {
main {
spawn( i over 3 ) in resultVar {
throw( error, i )
}
}
}
Desktop:
OS: windows
Jolie version: 1.13-git