It's the complaining about it--asserting your correctness to everyone around you--that makes someone the asshole.
Everyone always thinks they're right. If you didn't think you were right to act a certain way, you would do something different! Acknowledging afterwards that you were wrong and made a mistake is what makes someone tolerable.