Question: what is error in spelling?
Answer: I agree with your friend - a spelling error is where you regularly spell a word wrongly a spelling mistake is where you spell a word wrongly and don't notice.