Return a ValueError with a more helpful message.