Explain The Importance Of Error Analysis In Linguistics

What is meant by error analysis and what is it used for? We do know that Linguistics describes the study of language and also the analysis related to that language. What is this error analysis in linguistics used for?
