Sure, but it doesn't catch the case where you have multiple error variables in scope and you refer to the wrong one in one place but not the other or if you reuse an error.
I've seen that happen more than a few times. Some of it in new production code.
I've seen that happen more than a few times. Some of it in new production code.