1
0
Fork 0
mirror of https://github.com/python-poetry/install.python-poetry.org.git synced 2024-11-25 07:20:56 -05:00

Fix printing install errors redirected to stdout (#4466)

Following a regression in #4443
This commit is contained in:
Nikolai Røed Kristiansen 2021-09-19 07:55:08 +02:00 committed by GitHub
parent 2f316d632b
commit 396c06a6a9

View file

@ -440,7 +440,7 @@ class Installer:
self.install(version) self.install(version)
except subprocess.CalledProcessError as e: except subprocess.CalledProcessError as e:
print( print(
colorize("error", f"\nAn error has occurred: {e}\n{e.stderr.decode()}") colorize("error", f"\nAn error has occurred: {e}\n{e.stdout.decode()}")
) )
return e.returncode return e.returncode