mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
feature(util) checkObj: add trace
This commit is contained in:
parent
bed4543a6f
commit
b9a3e4330a
1 changed files with 2 additions and 0 deletions
|
|
@ -119,6 +119,7 @@ Util = exports || {};
|
|||
var lProp = pPropArr[i];
|
||||
lRet = pObj.hasOwnProperty( lProp );
|
||||
if (!lRet) {
|
||||
console.trace();
|
||||
Util.logError(lProp + ' not in Obj!');
|
||||
Util.log(pObj);
|
||||
break;
|
||||
|
|
@ -152,6 +153,7 @@ Util = exports || {};
|
|||
lRet = pObj[lProp];
|
||||
|
||||
if (!lRet) {
|
||||
console.trace();
|
||||
Util.logError(lProp + ' not true!');
|
||||
Util.log(pObj);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue