Is it possible to evaluate in a Decision if a specific custom function returned an error message

Is it possible to evaluate in a Decision if a specific custom function returned an error message

We have a custom function in Zoho Flow that creates an invoice (or recurring invoice in some cases) with multiple items in Zoho Books. These custom functions work without any issues 99% of the time. But occasionally the invoice might not get created because of strangely formatted data in our CRM or other reasons. Is there any way for us to be able to have a decision after the custom function that could evaluate if a custom function was a success or not? 

The step in Zoho Flow looks like it was successful (because it's a custom function): 


But in reality, it actually failed: 


On the ensuing step, is there any way I can evaluate if custom function was successful? It's really hard to catch these rare errors for us since the custom function history shows green dot and is marked as successful even though the error prevented the custom function from creating the invoice.

Any help would be greatly appreciated.