diff --git a/velox/common/file/File.cpp b/velox/common/file/File.cpp index 46156c2f1aa77..91be6dc99b46d 100644 --- a/velox/common/file/File.cpp +++ b/velox/common/file/File.cpp @@ -367,9 +367,12 @@ void LocalWriteFile::write( VELOX_CHECK_EQ( bytesWritten, length, - "Failure in LocalWriteFile::write, {} vs {}", + "Failure in LocalWriteFile::write, {} vs {}, error: {}, offset: {}, count: {}", bytesWritten, - length); + length, + strerror(errno), + offset, + static_cast(iovecs.size())); size_ = std::max(size_, offset + bytesWritten); }