English grammar – mistakes, errors, error correction

What errors should we correct when teaching a certain type of grammar (Only those concerning the current topic? Every mistake that could possibly hinder comprehensibility? Those mistakes which stem from not mastering grammar that is already basic for the given level? Or, is error correction essential in all the above-listed cases?)