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 authored and MylesBorins committed Mar 22, 2018
1 parent 5960cde commit 0414a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/doc/generate.js
Original file line number Diff line number Diff line change
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 0414a8c

Please sign in to comment.