From 63979b8c58ce012b0bc3b20fd1e0b0d7365f07b6 Mon Sep 17 00:00:00 2001 From: thibmaek Date: Tue, 4 Sep 2018 11:40:52 +0200 Subject: [PATCH] Silence output when no error occured --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6e26d7e..2de911b 100644 --- a/index.js +++ b/index.js @@ -25,14 +25,14 @@ module.exports = (args, flags) => { await fs.writeFile( `${flags.outputDir}/config.json`, prettyJSON(mapping), - console.error + err => err && console.error(err), ); if (flags.dump) { await fs.writeFile( `${flags.outputDir}/logdump.json`, prettyJSON(response), - console.error + err => err && console.error(err), ); }