Both are errors. The former is the error of practically making salvation conditioned on the works of the sinner, looking to the law or self for his right standing with God.
Sorry, but could not disagree more. There is no error in obedience! Actually making Christ your Lord and being obedient to Him, as befits claiming He is your Lord, has nothing to do with works salvation. Walking in the light of the Spirit as is commanded of any believer, dismissing a requirement for sanctification and righteousness, growth, will damn anybody who believes God is mocked. The Bible clearly teaches this, and just the word "Lord" means your Master, who you're obligated to obey. As I put it in another thread, a butler to an English lord who believes he can just accept room and board, then nothing else, will be fired by his lord, probably the first day on the job, and we can all thank our Lord He's more long suffering of the disobedient. But not forever!
People, you had better put away lip service faith and cease dismissing very clear teaching and warnings in the Bible:
Revelation 3:5 He that overcometh, the same shall be clothed in white raiment; and I will not blot out his name out of the book of life, but I will confess his name before my Father, and before his angels.
Revelation 2:5 Remember therefore from whence thou art fallen, and repent, and do the first works; or else I will come unto thee quickly, and will remove thy candlestick out of his place, except thou repent.
1 John 1:6-7 If we say that we have fellowship with him, and walk in darkness, we lie, and do not the truth: but if we walk in the light, as he is in the light, we have fellowship one with another, and the blood of Jesus Christ his Son cleanseth us from all sin.
Galatians 5:16-23 This I say then, walk in the Spirit, and ye shall not fulfil the lust of the flesh. For the flesh lusteth against the Spirit, and the Spirit against the flesh: and these are contrary the one to the other: so that ye cannot do the things that ye would. But if ye be led of the Spirit, ye are not under the law. Now the works of the flesh are manifest, which are these; adultery, fornication, uncleanness, lasciviousness, idolatry, witchcraft, hatred, variance, emulations, wrath, strife, seditions, heresies, envyings, murders, drunkenness, revellings, and such like: of the which I tell you before, as I have also told you in time past, that they which do such things SHALL NOT INHERIT THE KINGDOM OF GOD. But the fruit of the Spirit is love, joy, peace, longsuffering, gentleness, goodness, faith, meekness, temperance: against such there is no law.
Revelation 3:14-16 And unto the angel of the church of the Laodiceans write; These things saith the Amen, the faithful and true witness, the beginning of the creation of God; I know thy works, that thou art neither cold nor hot: I would thou wert cold or hot. So then because thou art lukewarm, and neither cold nor hot, I will spue thee out of my mouth.
Matthew 7:20 Wherefore by their fruits ye shall know them. Not every one that saith unto me, Lord, Lord, shall enter into the kingdom of heaven; but he that doeth the will of my Father which is in heaven. Many will say to me in that day, Lord, Lord, have we not prophesied in thy name? and in thy name have cast out devils? and in thy name done many wonderful works? And then will I profess unto them, I never knew you: depart from me, ye that work iniquity.
Matthew 7:14 Because strait is the gate, and narrow is the way, which leadeth unto life, and few there be that find it.