Skip to content

Commit

Permalink
Don't treat node experimental warnings as actual errors
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Porof <[email protected]>
  • Loading branch information
victorporof committed May 23, 2018
1 parent 91adf34 commit a8a1848
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/py/utils/env_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def run_command(args):

stdout, stderr = subprocess.Popen(args, **popen_args).communicate()
if stderr:
if b"SyntaxError" in stderr:
if b"ExperimentalWarning" in stderr:
# Don't treat node experimental warnings as actual errors.
return stdout
elif b"SyntaxError" in stderr:
raise NodeSyntaxError(
stdout.decode('utf-8'), stderr.decode('utf-8'))
else:
Expand Down

0 comments on commit a8a1848

Please sign in to comment.