Descartes’ account of error

What is Descartes’ account of error? How do we make one and how can we avoid making one?