diff options
| author | Dan Engelbrecht <[email protected]> | 2026-04-21 17:22:18 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-21 17:22:18 +0200 |
| commit | 82e222bf23dee04e6fb825037fbb4d86a9571ce0 (patch) | |
| tree | 007b805500a5e23167ae8acc977efc3a6298d826 /src/zen/cmds/bench_cmd.cpp | |
| parent | improved s3 hydration (#997) (diff) | |
| download | archived-zen-82e222bf23dee04e6fb825037fbb4d86a9571ce0.tar.xz archived-zen-82e222bf23dee04e6fb825037fbb4d86a9571ce0.zip | |
filesystem.h surface error codes (#998)
- Improvement: File copy, scan, clone, and move operations now report the underlying OS error in failure messages
Diffstat (limited to 'src/zen/cmds/bench_cmd.cpp')
| -rw-r--r-- | src/zen/cmds/bench_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zen/cmds/bench_cmd.cpp b/src/zen/cmds/bench_cmd.cpp index b1639105a..c935179e2 100644 --- a/src/zen/cmds/bench_cmd.cpp +++ b/src/zen/cmds/bench_cmd.cpp @@ -1661,7 +1661,7 @@ BenchDiskSubCmd::RunClone(const std::filesystem::path& Dir) try { std::filesystem::path DstPath = Dir / fmt::format("bench_clone_{}.tmp", FileIndex); - if (TryCloneFile(SrcPath, DstPath)) + if (std::error_code CloneEc = TryCloneFile(SrcPath, DstPath); !CloneEc) { CloneCount.fetch_add(1, std::memory_order_relaxed); } |