Error handling improved in case where rules don't compile