A good instructor would always be able to tell you where you went wrong without having a go at you.
If he's losing his temper, yelling at you or insulting you during the learning process, he's a bad instructor. None of that is helping you learn and it's probably upsetting you and undermining your confidence. I've had some bad instructors that are like that. I'd change instructors if I were you.