From 494e823b852932f1aa920ea3926f9681a9eb8ccf Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Tue, 23 Apr 2024 12:54:44 -0500 Subject: [PATCH] Added exception if all caches are empty in PluginManager --- FWCore/PluginManager/src/PluginManager.cc | 3 +++ 1 file changed, 3 insertions(+) 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_() = ""; }