Except sometimes it doesn't. Errors like missing or extra brackets or other misplaced keywords tend to put the error markers further past where the error is, and in the case of an extra { near the start of a function, it can be _very_ far from the real problem.