refactor(auth) tryRequire: callback -> log true

This commit is contained in:
coderaiser 2014-11-17 09:45:59 -05:00
parent 3e88d6b23e
commit 0640fdb734

View file

@ -18,10 +18,7 @@
next();
};
httpAuth = tryRequire('http-auth', function(error) {
if (error)
Util.log(error.message);
});
httpAuth = tryRequire('http-auth', {log: true});
if (httpAuth) {
type = init(httpAuth, config);