From e1c28b6f461025d0b573d0d3769c2a3995f56ec4 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Tue, 20 Mar 2018 14:38:00 +0200 Subject: [PATCH] tools: fix logic nit in tools/doc/generate.js PR-URL: https://github.com/nodejs/node/pull/19475 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- tools/doc/generate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/doc/generate.js b/tools/doc/generate.js index f369427a8aaf19..1691db5ec0046b 100644 --- a/tools/doc/generate.js +++ b/tools/doc/generate.js @@ -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;