diff options
-rw-r--r-- | lib/install.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/install.js b/lib/install.js index d2a8b0bcf..e92ef67a2 100644 --- a/lib/install.js +++ b/lib/install.js @@ -514,7 +514,8 @@ function targetResolver (where, context, deps) { cache.add(what, function (er, data) { if (er && parent && parent.optionalDependencies && parent.optionalDependencies.hasOwnProperty(what.split("@")[0])) { - log.warn([target._id, er], "optional dependency failed, continuing") + log.warn(what, "optional dependency failed, continuing") + log.verbose([what, er], "optional dependency failed, continuing") return cb(null, []) } @@ -547,7 +548,8 @@ function installOne (target, where, context, cb) { // check if this one is optional to its parent. if (er && context.parent && context.parent.optionalDependencies && context.parent.optionalDependencies.hasOwnProperty(target.name)) { - log.warn([target._id, er], "optional dependency failed, continuing") + log.warn(target._id, "optional dependency failed, continuing") + log.verbose([target._id, er], "optional dependency failed, continuing") er = null } |