it's a unearned run and the error would go to the pitcher if it's a wild pitch or the catcher if it's a past ball.
This isn't necessarily true. The official scorekeeper will then see how the rest of the inning plays out. If the hitter ends up getting a single then is still charged as an earned run. If there were 0 outs to start, then the 3rd hitter up could get a hit that would have driven the run in and it's still an earned run, else it's unearned.
Chat with our AI personalities