# HG changeset patch # User Sebastien Jodogne # Date 1582724202 -3600 # Node ID 643b5ee86f92fa1499eef4b73681f8af69a83cd8 # Parent 5cbbf14e516b2061616087ca233d54f30e707495 fix handling of errors of OrthancPluginStorageRemove() diff -r 5cbbf14e516b -r 643b5ee86f92 OrthancServer/ServerIndex.cpp --- a/OrthancServer/ServerIndex.cpp Wed Feb 26 13:21:41 2020 +0100 +++ b/OrthancServer/ServerIndex.cpp Wed Feb 26 14:36:42 2020 +0100 @@ -152,7 +152,15 @@ it = pendingFilesToRemove_.begin(); it != pendingFilesToRemove_.end(); ++it) { - context_.RemoveFile(it->GetUuid(), it->GetContentType()); + try + { + context_.RemoveFile(it->GetUuid(), it->GetContentType()); + } + catch (OrthancException& e) + { + LOG(ERROR) << "Unable to remove an attachment from the storage area: " + << it->GetUuid() << " (type: " << EnumerationToString(it->GetContentType()) << ")"; + } } }