We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2031e40 + ea9c7e3 commit 444487eCopy full SHA for 444487e
dephell_setuptools/_cmd.py
@@ -60,7 +60,12 @@ def content(self) -> Dict[str, Any]:
60
env=env,
61
)
62
if result.returncode != 0:
63
- raise RuntimeError(result.stderr.decode().strip().split('\n')[-1])
+ raise RuntimeError('Command {!r} failed in {} with RC={}: {}'.format(
64
+ cmd,
65
+ os.getcwd(),
66
+ result.returncode,
67
+ result.stderr.decode('utf-8').strip().split('\n')[-1],
68
+ ))
69
70
with output_json.open() as stream:
71
content = json.load(stream)
0 commit comments