In this function all commands of armaOS are spawned. Because of spawn the catch clause will never be reached via a thrown exception from within a command. Either we only use try/catch for calling getFile or we find a way to process exceptions at this point that are thrown by a spawned function.
Additionally, the defined _result variable is not used anywhere and the calling function fnc_shell_process.sqf does not process any return values. So this line can be removed.
https://github.com/y0014984/Advanced-Equipment/blob/0bec49ca28c7d177e08c84dc74f75cd57774c90f/addons/armaos/functions/fnc_shell_executeFile.sqf
In this function all commands of armaOS are spawned. Because of
spawn
the catch clause will never be reached via a thrown exception from within a command. Either we only use try/catch for callinggetFile
or we find a way to process exceptions at this point that are thrown by a spawned function.Additionally, the defined
_result
variable is not used anywhere and the calling functionfnc_shell_process.sqf
does not process any return values. So this line can be removed.