Improve the error message on bad property