Browse Source

Print actual Win32 error that occurred on file creation failure.

miguelfreitas
Pieter Wuille 12 years ago
parent
commit
67efbda4a2
  1. 2
      src/leveldb/util/env_win.cc

2
src/leveldb/util/env_win.cc

@ -971,7 +971,7 @@ Status Win32Env::NewRandomAccessFile( const std::string& fname, RandomAccessFile @@ -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;

Loading…
Cancel
Save