mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Print actual Win32 error that occurred on file creation failure.
This commit is contained in:
parent
3c3164da73
commit
67efbda4a2
@ -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…
Reference in New Issue
Block a user