Skip to content

Commit

Permalink
tools: fix logic nit in tools/doc/generate.js
Browse files Browse the repository at this point in the history
PR-URL: #19475
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
vsemozhetbyt committed Mar 20, 2018
1 parent 5a4a1cb commit 14460d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/generate.js
Expand Up @@ -65,8 +65,8 @@ function next(er, input) {
switch (format) {
case 'json':
require('./json.js')(input, filename, (er, obj) => {
console.log(JSON.stringify(obj, null, 2));
if (er) throw er;
console.log(JSON.stringify(obj, null, 2));
});
break;

Expand Down

0 comments on commit 14460d5

Please sign in to comment.