Skip to content

Commit

Permalink
addressing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prklm10 committed Oct 20, 2023
1 parent 78ec02e commit c11c978
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli-exec/src/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c11c978

Please sign in to comment.