Closed SemaLuna closed 5 months ago
Hi @SemaLuna, Sorry for the late revert we will fix look into this and the fix will be available in the next stable release.
@prklm10 no problem at all - thanks for the fix.
Hi @SemaLuna we have fixed this bug in 1.28.3.
Closing this issue.
The problem
When using
PERCY_ENABLE
to disable Percy, theexec
command unfortunately still has logic for trying to send buildEvents upstream (when there is an error).So if the command that percy wraps on errors, we get a NPE.
Eventually leading to an NPE:
Environment
@percy/cli
version: 1.28.0Code to reproduce issue
It is easy enough to notice the issue in the code - in this line we try to sendBuildEvents, however
percy
is undefined whenPERCY_ENABLE
is 0 (you can see this assumption in the same file here)Should be a simple fix.