Yeast infection or bacterial vaginosis. Easily treated, no worries at all!
It 90% sounds like an yeast infection
If I were you I would not panic discharge is normal during pregnancy but just to be on the safe side check with your doctor to make sure you don't have an infection I highly doubt it's a miscarriage you may have a yeast infection or a UTI