Skip to content
Snippets Groups Projects
Commit ee132657647d authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

setup: display return code information about failed `hg` call

This help to understand what is going wrong when things goes wrong.
parent 6014602a36ab
No related branches found
No related tags found
2 merge requests!845merge stable into default,!831setup: display return code information about failed `hg` call
......@@ -232,6 +232,10 @@
print("stderr from '%s':" % (' '.join(cmd)), file=sys.stderr)
print(err, file=sys.stderr)
if returncode != 0:
print(
"non zero-return '%s': %d" % (' '.join(cmd), returncode),
file=sys.stderr,
)
return b''
return out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment