Commit 09a8a679 authored by Alexey.Musinov's avatar Alexey.Musinov

log for errors

parent 4a9abce1
...@@ -51,8 +51,10 @@ namespace NSFile ...@@ -51,8 +51,10 @@ namespace NSFile
{ {
m_pFile = fopen(fileSystemRepresentation(sFileName), bRewrite ? "rb+" : "rb"); m_pFile = fopen(fileSystemRepresentation(sFileName), bRewrite ? "rb+" : "rb");
if (NULL == m_pFile) if (NULL == m_pFile) {
printf ("NSFile::OpenFile - error open file : %s\n",strerror(errno));
return false; return false;
}
fseek(m_pFile, 0, SEEK_END); fseek(m_pFile, 0, SEEK_END);
m_lFileSize = ftell(m_pFile); m_lFileSize = ftell(m_pFile);
...@@ -81,8 +83,10 @@ namespace NSFile ...@@ -81,8 +83,10 @@ namespace NSFile
{ {
m_pFile = fopen(fileSystemRepresentation(sFileName), "wb"); m_pFile = fopen(fileSystemRepresentation(sFileName), "wb");
if (NULL == m_pFile) if (NULL == m_pFile) {
printf ("NSFile::CreateFileW - error create file : %s\n",strerror(errno));
return false; return false;
}
m_lFilePosition = 0; m_lFilePosition = 0;
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment