I know it's water under the bridge, but I think I would've waited to tell him until you were/are sure you are pregnant. If it turns out you're not, your telling him you are (or might be) may push him further away once he finds out.
However, if you are pregnant, I truly wish the best for your M and this baby-on-the-way. Hopefully your H will really see this as an opportunity for a fresh start. Also, the fact that this made him say what he did tells me he may not be as far out the door as you might think...