aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-04-27 02:49:43 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-04-27 18:28:41 +0200
commit67efbda4a22dcf0868df18cc1280ffa6a33d0ecd (patch)
tree9bbb6eabf03f68f2881daaa4a6f5f1e6a8c8d093 /src/leveldb
parent3c3164da736d57bccc393f160236a507eacbae19 (diff)
Print actual Win32 error that occurred on file creation failure.
Diffstat (limited to 'src/leveldb')
-rw-r--r--src/leveldb/util/env_win.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leveldb/util/env_win.cc b/src/leveldb/util/env_win.cc
index f1a7610624..c64027f674 100644
--- a/src/leveldb/util/env_win.cc
+++ b/src/leveldb/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;