Mercurial > hg > orthanc
diff OrthancServer/Sources/ServerContext.cpp @ 5301:f26ed26a7793 am-experimental
merge
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 24 May 2023 08:56:41 +0200 |
parents | c9ea57d73603 5053a10da5a2 |
children |
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerContext.cpp Wed May 24 08:54:54 2023 +0200 +++ b/OrthancServer/Sources/ServerContext.cpp Wed May 24 08:56:41 2023 +0200 @@ -688,8 +688,12 @@ break; case StoreStatus_Failure: - LOG(ERROR) << "Store failure"; - break; + LOG(ERROR) << "Unknown store failure"; + throw OrthancException(ErrorCode_InternalError, HttpStatus_500_InternalServerError); + + case StoreStatus_StorageFull: + LOG(ERROR) << "Storage full"; + throw OrthancException(ErrorCode_FullStorage, HttpStatus_507_InsufficientStorage); default: // This should never happen