From c11c97897cac01b06d66f8f566df59323565f1d3 Mon Sep 17 00:00:00 2001 From: prklm10 Date: Fri, 20 Oct 2023 17:12:17 +0530 Subject: [PATCH] addressing comments --- packages/cli-exec/src/exec.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli-exec/src/exec.js b/packages/cli-exec/src/exec.js index a88d61bbf..b1acb2c03 100644 --- a/packages/cli-exec/src/exec.js +++ b/packages/cli-exec/src/exec.js @@ -118,7 +118,8 @@ async function* spawn(cmd, args, percy) { proc.on('close', code => { closed = code; if (code !== 0) { - // Only send event when there is a global error code + // Only send event when there is a global error code and + // percy token is present if (process.env.PERCY_TOKEN) { const myObject = { errorKind: 'cli',