And this is why Galileo Galilei got into so much trouble with the Catholic church? Bad science or bad religion?
Funny you should bring that up when they were talking about that recently on Catholic radio... yes, there were mistakes made ("bad religion"), but people love to blow it out of proportion and make it look much worse than it actually was. Also, while Galileo did get some things right, he did also get some things wrong.
As you can see, the Pope did express regret for the errors. Obviously errors can be made on both sides, but the Catholic church is a strong supporter of science... and my statement that good science agrees with good religion is still perfectly valid. It doesn't mean that mistakes are never made (although you can be assured that any dogma or infallible teaching on faith and morals IS true, and none of these would ever conflict with good (correct) science & reasoning).
Bottom line is that good science will give you the truth, and good religion will give you the truth, and the truth does not conflict with the truth. It doesn't mean that mistakes are never made as both 'sides' occasionally make mistakes. If there is a mistake, then you can call it "bad science" or "bad religion", but a mistake on the part of science doesn't make all that science teaches bad, nor does a mistake on the part of religion make all that religion teaches bad.