There are a few schools of thought on this subject. Some people believe that it is not a loss if you hit the 8-ball in on the break, because technically, you have not made an error yet. Other people believe that it is a loss, because you have given your opponent an easy shot at the 8-ball. Ultimately, it is up to the individual player to decide what they believe.