From 975e98a619ba26fa29ade7f4c05572d2ca842cee Mon Sep 17 00:00:00 2001 From: FuPeiJiang <42662615+FuPeiJiang@users.noreply.github.com> Date: Thu, 18 Aug 2022 23:10:13 -0400 Subject: [PATCH] fix: node.js debugger adds stderr (but exit code is 0) -> shouldn't throw --- gyp/pylib/gyp/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gyp/pylib/gyp/input.py b/gyp/pylib/gyp/input.py index 354958bfb2..3084da7d23 100644 --- a/gyp/pylib/gyp/input.py +++ b/gyp/pylib/gyp/input.py @@ -979,7 +979,7 @@ def ExpandVariables(input, phase, variables, build_file): p_stdout = p_stdout.decode("utf-8") p_stderr = p_stderr.decode("utf-8") - if p.wait() != 0 or p_stderr: + if p.wait() != 0: sys.stderr.write(p_stderr) # Simulate check_call behavior, since check_call only exists # in python 2.5 and later.