Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
install: Include warning details at verbose log level
Browse files Browse the repository at this point in the history
PR-URL: #13692
Credit: @iarna
Reviewed-By: @zkat
  • Loading branch information
iarna authored and zkat committed Sep 8, 2016
1 parent 2cdd713 commit cabcd17
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,13 @@ Installer.prototype.run = function (cb) {
self.idealTree.warnings.forEach(function (warning) {
if (warning.code === 'EPACKAGEJSON' && self.global) return
if (warning.code === 'ENOTDIR') return
errorMessage(warning).summary.forEach(function (logline) {
var output = errorMessage(warning)
output.summary.forEach(function (logline) {
log.warn.apply(log, logline)
})
output.detail.forEach(function (logline) {
log.verbose.apply(log, logline)
})
})
}
if (installEr && postInstallEr) {
Expand Down

0 comments on commit cabcd17

Please sign in to comment.