Mercurial > hg
changeset 51559:ee132657647d stable
setup: display return code information about failed `hg` call
This help to understand what is going wrong when things goes wrong.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 03 Apr 2024 16:00:37 +0200 |
parents | 6014602a36ab |
children | 7752cf4f64cc |
files | setup.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/setup.py Fri Mar 29 21:37:09 2024 +0100 +++ b/setup.py Wed Apr 03 16:00:37 2024 +0200 @@ -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