I am an international female student, working as a part-time employee in a fairly big company in Canada with a group: 2 other international male students and one male employee, "Jack", who is older than the others and has more experience from other jobs he had. I was the first person who started working in this company as R&D xyz engineer.
I designed a code to do yxz and passed it to Jack to add his parts. He reviewed my code and he said he wanted to split it into parts to make it neater. Then he added his part. He ran the code and it worked.
After a couple of months, I had to make a branch out of that code and add more features to the code. I started working on it, and noticed it was a bit time-consuming to understand what he has done in the code (he introduced a bunch of functions to my part). I was able to review the code and add those new features to my parts of the code, but I did not know about his part. I tried to ask him questions about his coding, and eventually, I edited and I got a weird error in the code. Everything looked fine in the code but the error was still there.
We were in a weekly group meeting with the boss and those teammates for giving updates. In that meeting, I said "I completed the editing but I am getting some errors in the code and I am not sure why. Jack might be able to help me to know what the problem is since he was the one who reviewed my code and added his part to it." I also said "I can provide my original code to him as well which is working if it helps." Jack immediately said: "NO I DO NOT NEED YOUR ORIGINAL CODE!" with anger.
The meeting finished and I received a chat from him saying that "you are blaming me for my code, I have more experience in coding than you and I am not insecure about my job if it was someone who was insecure they would yell at you. Those errors are from your part, not mine, you are not in the position to blame me."
I immediately replied: "I am sorry if you feel that way I did not mean that, I just tried to say you made changes to my parts when adding your code, it is good if you review it to see if you can figure out what the error is since everything looks fine"
After I said sorry, he looked at the code, he spotted that error and it was only a typo that I was not able to see. As I said my gut feeling was the code was fine, I did not have a clue why it does not work.
I actually feel that I did not blame him, I just tried to say you made changes to my code and now it got difficult for me to understand so it is better you review it, you might be able to figure out why the error is there. I feel like he is trying to show me his authority.
Jack and I used to drink tea together during our breaks, mostly in the summer. He is interested in politics and he used to send me news from my home country, not really good news. News about women's rights that are degraded in my home country, or how COVID surges in my home country.
Considering those things I mentioned, did I insult my colleague "Jack"? Or do you think he is trying to degrade me? What should I do next? How should I behave from now on?