Add some better error reporting to checkConfigIntegrity().