Hello I am importing script from another script. Import itself working but I woul like to add some error handling. So I tried:
:do {
/import file-name="somescript.rsc"
} on-error={
:log warning "script failed"
}
But this way it work only when import command failed itself (imported file not exist). But if imported script produce any error, it is not catched, instead processing is imediately terminated (including parent script). Is there any way (other than background running thru :execute - which is not much suitable for my use due to its asynchronous behavior) to catch imported script errors?