Hi,
Right now, via simulink block, we are not supporting viewing of the error flags that are inside the eCAN module . However, has a workaround, user can use the "System Initialize" block found under "Simulink coder->Custom Code" library blocks and add lines of code that would enable the interrupt when any of the error flags are set. To more on this, please refer the eCAN section of the device user guide. You can then add the "Hardware Interrupt" block in your model and configure it for CAN interrupt to generate the ISR code. Inside the ISR, you can filter the flags to read the source of interrupt and act accordingly.
Regards, Venkatesh Chilapur