However, if in the case we are discussing above (runs after 2 outs in an inning with an error)... if there is a pitching change, any runs given up by that pitcher (batters he is responsible for) would be earned. For example, groung ball out, fly ball out, error on the SS, a HR, then a walk. The pitcher is pulled. Reliever comes up and gives up a walk and a HR before getting the last out. 3 Runs are charged to the first pitcher, none earned. Two runs are charged to the second pitcher, both earned.