Perhaps the most straightforward question is, “Is what you did reasonable?” Asking this question serves as a way to check if you were right or wrong in any given situation. The question isn’t whether it turned out well for you, and it’s not about whether it resulted in your favor or disfavor.
Was it reasonable? Further, was it reasonable according to the entire faculty you possess, not just one part of it?
You might say it is perfectly reasonable to do something positive for your ego, but your ego is not rational. If it can be considered so, it may only be considered a part of your reasoning mind. How can you call yourself reasonable if ego, vanity, impatience, anger, and emotion are the faculties that you consult? That will only result in poor decisions and poor outcomes, though you only need to validate where the decision came from to discover how right or wrong it was.