aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/caslog.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-12-11 06:37:15 -0500
committerGitHub <[email protected]>2023-12-11 12:37:15 +0100
commitb12bee3b78e1cfb5080309eca2af34f9b87a977b (patch)
treefd4afadb03d74cea661a46a888807b25327ab6e9 /src/zenstore/caslog.cpp
parentmem cache perf improvements (#592) (diff)
downloadzen-b12bee3b78e1cfb5080309eca2af34f9b87a977b.tar.xz
zen-b12bee3b78e1cfb5080309eca2af34f9b87a977b.zip
Make sure that PathFromHandle don't hide true error when throwing exceptions (#600)
* Make sure that PathFromHandle don't hide true error when throwing exceptions * changelog * return error info in PathFromHandle if path fails to resolve
Diffstat (limited to 'src/zenstore/caslog.cpp')
-rw-r--r--src/zenstore/caslog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/zenstore/caslog.cpp b/src/zenstore/caslog.cpp
index cf3bd76da..2c26e522f 100644
--- a/src/zenstore/caslog.cpp
+++ b/src/zenstore/caslog.cpp
@@ -229,7 +229,8 @@ CasLogFile::Append(const void* DataPointer, uint64_t DataSize)
if (Ec)
{
- throw std::system_error(Ec, fmt::format("Failed to write to log file '{}'", PathFromHandle(m_File.Handle())));
+ std::error_code Dummy;
+ throw std::system_error(Ec, fmt::format("Failed to write to log file '{}'", PathFromHandle(m_File.Handle(), Dummy)));
}
}