Better error message when props factory fails