From 14ad93a23e4f8fc68a273cf023614d92cd62f3b7 Mon Sep 17 00:00:00 2001
From: Sergey Yakubov <sergey.yakubov@desy.de>
Date: Tue, 18 Sep 2018 12:09:09 +0200
Subject: [PATCH] more info for io errors

---
 common/cpp/src/system_io/system_io.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/cpp/src/system_io/system_io.cpp b/common/cpp/src/system_io/system_io.cpp
index b49387696..e162e2317 100644
--- a/common/cpp/src/system_io/system_io.cpp
+++ b/common/cpp/src/system_io/system_io.cpp
@@ -164,11 +164,13 @@ Error SystemIO::WriteDataToFile(const std::string& root_folder, const std::strin
     }
 
     if (err) {
+        err->Append(full_name);
         return err;
     }
 
     Write(fd, data, length, &err);
     if (err) {
+        err->Append(full_name);
         return err;
     }
 
@@ -592,6 +594,7 @@ Error SystemIO::CreateDirectoryWithParents(const std::string& root_path, const s
         Error err;
         CreateNewDirectory(new_path, &err);
         if (err && err != IOErrorTemplates::kFileAlreadyExists) {
+            err->Append(new_path);
             return err;
         }
         if (iter != path.end()) {
-- 
GitLab