setup: display return code information about failed `hg` call stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 03 Apr 2024 16:00:37 +0200
branchstable
changeset 51559 ee132657647d
parent 51542 6014602a36ab
child 51561 7752cf4f64cc
setup: display return code information about failed `hg` call This help to understand what is going wrong when things goes wrong.
setup.py
--- 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