diff --git a/include/storage/tar.hpp b/include/storage/tar.hpp index 548050e3b..a5e232cda 100644 --- a/include/storage/tar.hpp +++ b/include/storage/tar.hpp @@ -279,7 +279,8 @@ class FileWriter // update header to reflect increased tar size auto old_size = header.size; header.size += number_of_bytes; - mtar_write_header(&handle, &header); + ret = mtar_write_header(&handle, &header); + detail::checkMTarError(ret, path, name); // now seek to the end of the old record handle.remaining_data = number_of_bytes;