Skip to content

Commit

Permalink
Merge pull request #60 from tadatuta/dontFailOnJSDoc3Errors
Browse files Browse the repository at this point in the history
Do not fail on JSDoc3 errors
  • Loading branch information
blond committed Oct 7, 2015
2 parents 859b7e8 + 343daeb commit 0b73066
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/techs/jsdoc-json-jsdoc3.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ module.exports = require('enb/lib/build-flow').create()
.target('target', '?.jsdoc.json')
.useFileList(['js'])
.builder(function (files) {
var isWinOS = path.sep === '\\';
var isWinOS = path.sep === '\\',
logger = this.node.getLogger(),
target = this._target;

if (files.length === 0) {
return '{}';
Expand Down Expand Up @@ -36,8 +38,10 @@ module.exports = require('enb/lib/build-flow').create()

jsdoc.on('close', function (code) {
if (code !== 0) {
throw new Error(err);
logger.logWarningAction('js-doc', target, err);
return d.resolve('{}');
}

d.resolve(content);
});

Expand Down

0 comments on commit 0b73066

Please sign in to comment.