But you see, the point of having a good friend is that you don't need to put that much thought into what you share and when you share. It should be judgment and comment free.
I am sorry about what happened with your friend. This does give you reason to re-evaluate your standing with her. I had something similar happen to me. A cousin came to me for advice and I gave her my point of view. Next thing you know she came back to tell me how she regrets listening to me and that I am not the right person for the topic of discussion. I didn't like being insulted for helping. Now I know not to respond to her requests.