Actually since he is looking at an EOF error here would it not be better to do it this way

If @Error > 0 Exit
Else ? ...
EndIF