From f16be187b398a73c6eb16ac677673d241e41e2f1 Mon Sep 17 00:00:00 2001 From: Helio Machado <0x2b3bfa0+git@googlemail.com> Date: Thu, 29 Sep 2022 14:34:01 +0200 Subject: [PATCH] Fix opaque error messages when not `isatty` --- bin/cml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/cml.js b/bin/cml.js index 027aa45c4..836767332 100755 --- a/bin/cml.js +++ b/bin/cml.js @@ -157,7 +157,7 @@ const handleError = (message, error) => { const event = { ...telemetryEvent, error: err.message }; await send({ event }); } - winston.error({ err }); + winston.error(err); process.exit(1); } })();