He seems to be very human. He gets afraid and angry. He even loves Artoo, in his own way.
Lucas wrote him that way. Though i don’t know if Tony feels the same way about Artoo. He seems to have been genuinely annoyed. Actor Vs character, the actor and the character aren’t the same.