Im feeling down today

I'm feeling really down today. I got a call from my doctor saying I have gestational diabetes. This is my second pregnancy and I had it with my first but I have been eating healthy and Working out regularly. I feel like I failed. I can't stop crying about everything today. :(Sorry to vent.