Mercurial > hg > orthanc-object-storage
comparison Common/StoragePlugin.cpp @ 8:987cb95c1aee
Prevent Orthanc to start if plugin fails to start
author | Alain Mazy |
---|---|
date | Mon, 20 Jul 2020 12:21:07 +0200 |
parents | fc26a8fc54d5 |
children | 2a02b21f0a19 |
comparison
equal
deleted
inserted
replaced
6:393fcf337462 | 8:987cb95c1aee |
---|---|
187 return -1; | 187 return -1; |
188 } | 188 } |
189 | 189 |
190 plugin.reset(StoragePluginFactory::CreateStoragePlugin(orthancConfig)); | 190 plugin.reset(StoragePluginFactory::CreateStoragePlugin(orthancConfig)); |
191 | 191 |
192 if (plugin.get() == nullptr) | |
193 { | |
194 return -1; | |
195 } | |
196 | |
192 static const char* const ENCRYPTION_SECTION = "StorageEncryption"; | 197 static const char* const ENCRYPTION_SECTION = "StorageEncryption"; |
193 | 198 |
194 if (orthancConfig.IsSection(ENCRYPTION_SECTION)) | 199 if (orthancConfig.IsSection(ENCRYPTION_SECTION)) |
195 { | 200 { |
196 OrthancPlugins::OrthancConfiguration cryptoSection; | 201 OrthancPlugins::OrthancConfiguration cryptoSection; |