Skip to content

Commit

Permalink
Show in warning message location of malformed bower.json (#2357)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo.liang authored and sheerun committed Nov 7, 2016
1 parent 7896224 commit bdabf6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util/readJson.js
Expand Up @@ -19,7 +19,9 @@ function readJson(file, options) {

if (options.logger) {
var issues = bowerJson.getIssues(json);

if (issues.warnings.length > 0){
options.logger.warn('invalid-meta', 'for:' + jsonFile);
}
issues.warnings.forEach(function (warning) {
options.logger.warn('invalid-meta', warning);
});
Expand Down

0 comments on commit bdabf6a

Please sign in to comment.