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