diff --git a/util/env_win.cc b/util/env_win.cc index f1a76106247c2..c64027f674f87 100644 --- a/util/env_win.cc +++ b/util/env_win.cc @@ -971,7 +971,7 @@ Status Win32Env::NewRandomAccessFile( const std::string& fname, RandomAccessFile if(!pFile->isEnable()){ delete pFile; *result = NULL; - sRet = Status::IOError(path,"Could not create random access file."); + sRet = Status::IOError(path, Win32::GetLastErrSz()); }else *result = pFile; return sRet;