This is obviously not tremendously helpful to the user. Distinguishing between errors ('You have that badge' vs. technical failure) and providing a recommendation on how to resolve it would be better.