aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/util/env_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/leveldb/util/env_win.cc')
-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;