Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: node.js debugger adds stderr (but exit code is 0) -> shouldn't throw #2719

Merged
merged 2 commits into from Aug 22, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion gyp/pylib/gyp/input.py
Expand Up @@ -979,8 +979,9 @@ 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_stderr:
sys.stderr.write(p_stderr)
if p.wait() != 0:
# Simulate check_call behavior, since check_call only exists
# in python 2.5 and later.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Simulate check_call behavior, since check_call only exists
# in python 2.5 and later.

Remove.

raise GypError(
Expand Down