I wonder if you will feel sad when you dream of your "death"? Give up? Still angry? Do you care about your family in your dreams? Or regret that an ideal has not been completed? What did your good friend do in your dream? Do you have any special feelings or associations for him or her?
I think if you can answer these questions, you should be able to understand the meaning of this dream by yourself. 100w Friends say that dreams are a letter from the subconscious to the conscious. I prefer the expression "dreams are our private documents", because only we can truly understand what we see and get in our dreams, understand our own emotions and feelings, and make an analysis that truly conforms to our own dreams.
From your simple description, I think there are many kinds of analysis, and I'm not sure. But I guess maybe the focus of this dream is not "death", but "dying in the arms of a good friend"-do you reflect your inner desire for friendship or other feelings through this dream? "Good friend" may just be a symbol, symbolizing the regret and desire of your emotional world in reality.