ALMOST GAVE WRONG MED!!

I was working last night and I was supposed to give oxycodone but I almost gave a different control drug… I gave it to my patient and she noticed a capsule that was not what she was regularly taking so she questioned it and wanted to know what it is.. I told her it’s oxycodone and she said it’s not so I went in to grab my preceptor to help me explain only to found out I grabbed the wrong drug… My preceptor yelled at me in front of everybody, I just kept saying I’m sorry and I felt like crying at that moment l.. I was so embarrassed and couldn’t believe I almost gave a wrong medication to my patient… My shift was going so well and she was my last patient to give medication to but I just had to fuck up last minute…