SO says I make excuses

Our daughter is 2 and she just weren’t o the er on Friday for constipation so it’s been a rough few days. But I am very calm with her.. I am strict and stern when I need to be but I don’t just scream and yell at her. Well, she was in the bathtub and getting upset cause she couldn’t have her Minnie Mouse bubble blower in there. I said it can sit on the sink while you take a bath. And he was laying in bed after he has smoked weed all day and played video games. I have been outside all day with her playing with her and connecting and he yells, HARLOW SHUT THE F*** UP, remove the toys from the bathroom and stop fucking making excuses for her it’s all you do” so I said “ you need to stop yelling like that. And closed the door. I don’t make excuses for her. She’s two years old and I try to understand her need before getting upset with her or before getting stern. Am I in the wrong?