Yelled at my baby :(

Baby is 6 months old, teething, and going through leap 5. As a result he isn’t sleeping well and so neither am I. I know its not his fault and he isn’t doing it on purpose, but in my exhaustion I am getting so frustrated with him. I raised my voice at him last night when he wouldn’t stop crying when I was rocking him to sleep. I’m so disappointed in myself and the thought of him going to sleep and dreaming of mummy yelling at him breaks my heart. I’ve given him lots of cuddles today to make up for it, but I feel like such a bad Mum.