PLS HELP WILL GIVE BRAINLIEST!!!

What does the word chagrin mean in the following passage?

"There was some self-pity creeping in, and not a little chagrin at being stup-id enough to just let them run when I didn’t know the country."