From 6cc043cc9e5c83b3322e92c91699928be1e8ed19 Mon Sep 17 00:00:00 2001 From: Dario Gieselaar Date: Tue, 3 Mar 2020 14:55:41 +0100 Subject: [PATCH] Use console.error instead of console.log --- x-pack/legacy/plugins/apm/scripts/optimize-tsconfig.js | 3 +-- x-pack/legacy/plugins/apm/scripts/unoptimize-tsconfig.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/x-pack/legacy/plugins/apm/scripts/optimize-tsconfig.js b/x-pack/legacy/plugins/apm/scripts/optimize-tsconfig.js index fec49336e2635..745f0db45e4fa 100644 --- a/x-pack/legacy/plugins/apm/scripts/optimize-tsconfig.js +++ b/x-pack/legacy/plugins/apm/scripts/optimize-tsconfig.js @@ -7,7 +7,6 @@ const { optimizeTsConfig } = require('./optimize-tsconfig/optimize'); optimizeTsConfig().catch(err => { - // eslint-disable-next-line no-console - console.log(err); + console.error(err); process.exit(1); }); diff --git a/x-pack/legacy/plugins/apm/scripts/unoptimize-tsconfig.js b/x-pack/legacy/plugins/apm/scripts/unoptimize-tsconfig.js index 8d1ef68f1daa6..e33dc502a9587 100644 --- a/x-pack/legacy/plugins/apm/scripts/unoptimize-tsconfig.js +++ b/x-pack/legacy/plugins/apm/scripts/unoptimize-tsconfig.js @@ -7,7 +7,6 @@ const { unoptimizeTsConfig } = require('./optimize-tsconfig/unoptimize'); unoptimizeTsConfig().catch(err => { - // eslint-disable-next-line no-console - console.log(err); + console.error(err); process.exit(1); });