Exactly, as parents; and I have been guilty of this in the past, we tend to focus on the result, rather than the process.
I have fixed this now; and when my daughter tells me she got stuff wrong at school, I say; "Excellent! That means you are learning new stuff!" We then go on to talk about the challenges she's facing, and how we can work towards mitigating them.
Cg