minor changes

This commit is contained in:
coderaiser 2013-02-08 03:59:20 -05:00
parent 8c4fb9c4ab
commit f8e47930bd
2 changed files with 13 additions and 10 deletions

View file

@ -58,6 +58,7 @@
});
else
sendResponse({
name : lPath,
status : FILE_NOT_FOUND,
data : pError.toString(),
request : p.request,
@ -79,7 +80,7 @@
*/
function readDir(pParams){
var lRet,
lError, lFiles, lHTTP,
lError, lFiles, lHTTP, lDirPath,
lReq, lRes;
if(pParams){
@ -91,6 +92,7 @@
lReq = lHTTP.request,
lRes = lHTTP.response;
lRet = true;
lDirPath = getDirPath(lReq);
}
}
@ -112,9 +114,7 @@
};
if(n){
var i, lDirPath = getDirPath(lReq);
for(i = 0; i < n; i++){
for(var i = 0; i < n; i++){
var lName = lDirPath + lFiles[i],
lParams = {
callback : lFill,
@ -131,10 +131,11 @@
}
else
sendResponse({
status : FILE_NOT_FOUND,
data : lError.toString(),
name : lDirPath,
request : lReq,
response: lRes
response: lRes,
status : FILE_NOT_FOUND
});
}
@ -279,17 +280,16 @@
},
lProccessed = Util.exec(IndexProcessingFunc, {
additional : c.list,
data : p.data,
additional : c.list
name : INDEX
});
if(lProccessed)
p.data = lProccessed;
if (!p.Error){
lParams.name = INDEX;
lParams.data = p.data;
Util.log('file ' + c.name + ' readed');
}
else{

View file

@ -135,8 +135,11 @@ Util = exports || {};
var lProp = pTrueArr[i];
lRet = pObj[lProp];
if( !lRet)
if( !lRet){
Util.logError(lProp + ' not true!');
Util.log(pObj);
break;
}
}
}
}