Log name error

This commit is contained in:
Edouard Dupin 2012-03-12 17:59:56 +01:00
parent 3372645356
commit e6ee6e0cd1

View File

@ -137,22 +137,22 @@ void classColorManager::LoadFile(const char * xmlFilename)
// open the curent File // open the curent File
etk::File fileName(xmlFilename, etk::FILE_TYPE_DATA); etk::File fileName(xmlFilename, etk::FILE_TYPE_DATA);
if (false == fileName.Exist()) { if (false == fileName.Exist()) {
EWOL_ERROR("File Does not exist : " << fileName); EDN_ERROR("File Does not exist : " << fileName);
return; return;
} }
int32_t fileSize = fileName.Size(); int32_t fileSize = fileName.Size();
if (0==fileSize) { if (0==fileSize) {
EWOL_ERROR("This file is empty : " << fileName); EDN_ERROR("This file is empty : " << fileName);
return; return;
} }
if (false == fileName.fOpenRead()) { if (false == fileName.fOpenRead()) {
EWOL_ERROR("Can not open the file : " << fileName); EDN_ERROR("Can not open the file : " << fileName);
return; return;
} }
// allocate data // allocate data
char * fileBuffer = new char[fileSize+5]; char * fileBuffer = new char[fileSize+5];
if (NULL == fileBuffer) { if (NULL == fileBuffer) {
EWOL_ERROR("Error Memory allocation size=" << fileSize); EDN_ERROR("Error Memory allocation size=" << fileSize);
return; return;
} }
memset(fileBuffer, 0, (fileSize+5)*sizeof(char)); memset(fileBuffer, 0, (fileSize+5)*sizeof(char));