It's being called because it's the next command, and will thus automatically be executed.
You need to use a structure such as
if error etc goto A
A: echo an error etc
sort of, as best as i recollect have a look here to understand better. click here