Constructive feedback is useful. Why should I feel bad about it? I feel grateful that someone helps me improve.
In the case of a snarky comment, I would assume the reviewer has some personal issues. I feel bad for them, not me.
A honest mistake is not really a mistake. I would do the same thing again if I were in the same situation. The fact that I couldn't have known about it is someone else's mistake.
Maybe dig a little deeper why you feel bad about it: Do you consider your self-worth lowered? Do you worry how others think of you now? Trace your bad feelings to a reason as specific as possible. Then figure out if is actually true. For example, you made an honest mistake, a team mate pointed it out in a review, and now you think the tech lead considers you a bad coder. If you dare, you can directly ask the tech lead. Just thinking about it might already help you realize it is silly though. Ok, to be honest you could realize that it is actually the case that your tech lead now hates you. That is still progress because now you have a concrete problem instead of vague bad feelings.
In the case of a snarky comment, I would assume the reviewer has some personal issues. I feel bad for them, not me.
A honest mistake is not really a mistake. I would do the same thing again if I were in the same situation. The fact that I couldn't have known about it is someone else's mistake.
Maybe dig a little deeper why you feel bad about it: Do you consider your self-worth lowered? Do you worry how others think of you now? Trace your bad feelings to a reason as specific as possible. Then figure out if is actually true. For example, you made an honest mistake, a team mate pointed it out in a review, and now you think the tech lead considers you a bad coder. If you dare, you can directly ask the tech lead. Just thinking about it might already help you realize it is silly though. Ok, to be honest you could realize that it is actually the case that your tech lead now hates you. That is still progress because now you have a concrete problem instead of vague bad feelings.