Skip to content

Commit a8a1848

Browse files
committed
Don't treat node experimental warnings as actual errors
Signed-off-by: Victor Porof <[email protected]>
1 parent 91adf34 commit a8a1848

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/py/utils/env_utils.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ def run_command(args):
5555

5656
stdout, stderr = subprocess.Popen(args, **popen_args).communicate()
5757
if stderr:
58-
if b"SyntaxError" in stderr:
58+
if b"ExperimentalWarning" in stderr:
59+
# Don't treat node experimental warnings as actual errors.
60+
return stdout
61+
elif b"SyntaxError" in stderr:
5962
raise NodeSyntaxError(
6063
stdout.decode('utf-8'), stderr.decode('utf-8'))
6164
else:

0 commit comments

Comments
 (0)