diff options
| author | Dan Engelbrecht <[email protected]> | 2023-12-11 06:37:15 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-11 12:37:15 +0100 |
| commit | b12bee3b78e1cfb5080309eca2af34f9b87a977b (patch) | |
| tree | fd4afadb03d74cea661a46a888807b25327ab6e9 /src/zenstore/caslog.cpp | |
| parent | mem cache perf improvements (#592) (diff) | |
| download | zen-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.cpp | 3 |
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))); } } |