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), ); }