diff --git a/FWCore/PluginManager/src/PluginManager.cc b/FWCore/PluginManager/src/PluginManager.cc index 5f8da0342fbbd..66ad296d3ee15 100644 --- a/FWCore/PluginManager/src/PluginManager.cc +++ b/FWCore/PluginManager/src/PluginManager.cc @@ -111,6 +111,9 @@ namespace edmplugin { } throw ex; } + if (iConfig.mustHaveCache() and categoryToInfos_.empty()) { + throw cms::Exception("PluginManagerCacheFilesEmpty") << "Cache files were found but all were empty."; + } //Since this should not be called until after 'main' has started, we can set the value loadingLibraryNamed_() = ""; }