# HG changeset patch # User Alain Mazy # Date 1731938048 -3600 # Node ID a42f7dbe11c0b191b82caf9ec977db72b935478d # Parent 3ed63202eff8334b38ca9e2fd0e2fa4b070dc917 Orthanc will now fail to start when provided with a plugin path that can not be found diff -r 3ed63202eff8 -r a42f7dbe11c0 NEWS --- a/NEWS Tue Nov 12 18:03:34 2024 +0100 +++ b/NEWS Mon Nov 18 14:54:08 2024 +0100 @@ -30,6 +30,8 @@ * Fix extremely rare error when 2 threads are trying to create the same folder in the File Storage at the same time. * Fix crashes if handling very large images +* Loading plugins: + - Orthanc will now fail to start when provided with a plugin path that can not be found. * Metrics: - fix a few metrics that were not published - added 2 metrics: orthanc_storage_cache_miss_count & orthanc_storage_cache_hit_count diff -r 3ed63202eff8 -r a42f7dbe11c0 OrthancServer/Plugins/Engine/PluginsManager.cpp --- a/OrthancServer/Plugins/Engine/PluginsManager.cpp Tue Nov 12 18:03:34 2024 +0100 +++ b/OrthancServer/Plugins/Engine/PluginsManager.cpp Mon Nov 18 14:54:08 2024 +0100 @@ -244,8 +244,7 @@ { if (!boost::filesystem::exists(path)) { - LOG(ERROR) << "Inexistent path to plugins: " << path; - return; + throw OrthancException(ErrorCode_SharedLibrary, "Inexistent path to plugin: " + path); } if (boost::filesystem::is_directory(path))