If Er was evil in the sight of the Lord, he was unmistakably evil. God's acts of judgment are never rash or knee jerk. He knew/ordained that the Messiah would come from the line of Judah. They (God's judgments) are always in view of what is to come or what is to be.