mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
Print actual Win32 error that occurred on file creation failure.
This commit is contained in:
parent
3c3164da73
commit
67efbda4a2
1 changed files with 1 additions and 1 deletions
|
@ -971,7 +971,7 @@ Status Win32Env::NewRandomAccessFile( const std::string& fname, RandomAccessFile
|
||||||
if(!pFile->isEnable()){
|
if(!pFile->isEnable()){
|
||||||
delete pFile;
|
delete pFile;
|
||||||
*result = NULL;
|
*result = NULL;
|
||||||
sRet = Status::IOError(path,"Could not create random access file.");
|
sRet = Status::IOError(path, Win32::GetLastErrSz());
|
||||||
}else
|
}else
|
||||||
*result = pFile;
|
*result = pFile;
|
||||||
return sRet;
|
return sRet;
|
||||||
|
|
Loading…
Add table
Reference in a new issue