mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 00:50:59 +00:00
feature(tryRequire) name, callback -> name, options
This commit is contained in:
parent
4d8adf3ed9
commit
30ea708d09
6 changed files with 11 additions and 14 deletions
|
|
@ -29,10 +29,7 @@
|
|||
return emptyFunc;
|
||||
};
|
||||
|
||||
webconsole = tryRequire('console-io', function(error) {
|
||||
if (error)
|
||||
Util.log(error.message);
|
||||
}) || emptyFunc;
|
||||
webconsole = tryRequire('console-io', {log: true}) || emptyFunc;
|
||||
|
||||
module.exports = function(params) {
|
||||
var keys,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue