Feeling like I've let down myself and my baby.

Got my blood results back today and I feel like such a let down and a failure to our unborn baby. I've got gestational diabetes. I'm struggling to find a way of dealing with it without just blaming myself. I know it's manageable and tends to go away after the baby is born. Does anyone have it and feel the same? Just need some cheering up to stop myself crying!!