Altert when motor ports disconnect

After an unfortunate incident involving a motor that unknowingly disconnected from its port, I was wondering if there was a way to take that info and display it on the controller. I’ve re-crimped the wires, but as a last resort I would like to take that port disconnect alert on the brain and make the controller vibrate and display the same info. Is this at all possible? Thanks!