Skip to content

Commit

Permalink
Print actual Win32 error that occurred on file creation failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa committed Aug 17, 2013
1 parent 907f308 commit d5317e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/env_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5317e8

Please sign in to comment.