On the other hand, perhaps you learned that you have a strength as a writer that you hadn't recognized before. If you wrote a drama, but readers keep mentioning a really funny scene that was irrelevant to the main plot, then think about writing a comedy next time as a stretch. You may have missed your calling in life. Conversely, if you're a comedy writer and everyone laughs themselves silly reading your stories, think about writing a drama to do the same kind of stretch in new directions. A serious story may not be as well received, and you may not write drama as well as you did comedy, but the exercise will improve your overall writing skills.
Criticism is the highest form of praise.
No matter how tactless and wounding it may appear, criticism shows that your work is being taken seriously even by someone who didn't like all aspects of what they read. The worst insult a writer can receive is silence. It means your words couldn't move readers, that your story didn't touch them in a way that demanded a reaction.