util: improve bitcoin-wallet exit codes

This commit is contained in:
MacroFake committed 2022-09-12 13:11:18 +02:00
1 parent 5558d2f549
commit fa2b8ae0a2
2 files changed
+13 -8

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ versions = []
for relpath in BINARIES:
abspath = os.path.join(builddir, relpath)
try:
r = subprocess.run([abspath, '--version'], stdout=subprocess.PIPE, universal_newlines=True)
r = subprocess.run([abspath, "--version"], stdout=subprocess.PIPE, check=True, universal_newlines=True)
except IOError:
print(f'{abspath} not found or not an executable', file=sys.stderr)
sys.exit(1)