diff options
| -rw-r--r-- | zenstore/filecas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zenstore/filecas.cpp b/zenstore/filecas.cpp index 3a31cfd00..80943a6c1 100644 --- a/zenstore/filecas.cpp +++ b/zenstore/filecas.cpp @@ -149,7 +149,7 @@ FileCasStrategy::InsertChunk(IoBuffer Chunk, const IoHash& ChunkHash) if (FAILED(hRes)) { - throw WindowsException(hRes, "Failed to open shard directory '{}'"_format(FilePath)); + ThrowSystemException(hRes, "Failed to open shard directory '{}'"_format(FilePath)); } // Retry @@ -231,7 +231,7 @@ FileCasStrategy::InsertChunk(const void* const ChunkData, const size_t ChunkSize if (FAILED(hRes)) { - throw WindowsException(hRes, "Failed to open shard file '{}'"_format(WideToUtf8(ShardedPath))); + ThrowSystemException(hRes, "Failed to open shard file '{}'"_format(WideToUtf8(ShardedPath))); } size_t ChunkRemain = ChunkSize; |