How to handle theme activation errors?

How to handle theme activation errors?