What to do when an inspector misses stuff?
Before going into full panic mode, get somebody out there to see what the repairs will cost. As mentioned, it might just take a tube of caulk for the roof and a gallon of paint for the ceiling. Or you may have a ton of rotted wood.
The seller must disclose any problems with the home. Does it look like they tried to paint over any damage?