Skip to content

Commit

Permalink
Added exception if all caches are empty in PluginManager
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr15Jones committed Apr 23, 2024
1 parent 427fc3b commit 494e823
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FWCore/PluginManager/src/PluginManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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_() = "<loaded by another plugin system>";
}
Expand Down

0 comments on commit 494e823

Please sign in to comment.