He walked in all the ways of Jeroboam son of Nebat and in his sin, which he had caused Israel to commit, so that they provoked the Lord, the God of Israel, to anger by their worthless idols.