Switch LED on if modbus has errors

Hi all
I have a modbus_controller active in one of my projects. Now I want to switch on a LED when the modbus_controller has an error like a connection issue.

Any idea how this can be done?

Thanks,
Regards,
Mike