However, scenarios where bugs/system errors occur during the transaction execution are not handled currently, meaning no information is added to the record stream that would inform the users on what went wrong, how much gas was consumed, etc.
Consider adding logic to populate the contract function result with some useful information in these scenarios as well.
https://github.com/hashgraph/hedera-services/issues/9149 and the resulting fixes take care of scenarios where validations on user transactions performed by the node fail and the transactions are not executed in the EVM.
However, scenarios where bugs/system errors occur during the transaction execution are not handled currently, meaning no information is added to the record stream that would inform the users on what went wrong, how much gas was consumed, etc.
Consider adding logic to populate the contract function result with some useful information in these scenarios as well.