fixed bug which occurs when error reading directory happens

This commit is contained in:
coderaiser 2012-07-24 12:18:09 +03:00
parent 76ec2b3e3c
commit bcc6df241a

View file

@ -292,7 +292,7 @@ CloudServer._controller=function(pReq, pRes)
lName='.'+pathname;
console.log('reading '+lName);
/* сохраняем указатель на responce и имя */
/* сохраняем указатель на response и имя */
CloudServer.Responses[lName]=pRes;
/* saving status OK for current file */
@ -565,7 +565,7 @@ CloudServer._readDir=function (pError, pFiles)
else
{
console.log(pError);
CloudServer.sendResponse('OK',pError.toString());
CloudServer.sendResponse('OK',pError.toString(), DirPath);
}
};