noun
embarrassment or humiliation arising from disappointment or failure.
Much to his chagrin, he realized that it was his error that had caused all the damage.
transitive verb
to cause to feel humiliation or great disappointment.
He was chagrined to discover that he had arrived too late collect the prize money.