diff --git a/lib/util.js b/lib/util.js index a4682168..db1e404f 100644 --- a/lib/util.js +++ b/lib/util.js @@ -673,15 +673,14 @@ * function execute param function in * try...catch block * - * @param pCallBack + * @param callback */ - this.tryCatch = function(pCallBack) { + this.tryCatch = function(callback) { var ret; - try{ - ret = pCallBack(); - } - catch(pError) { - ret = pError; + try { + ret = callback(); + } catch(error) { + ret = error; } return ret;