Skip to content

Commit adf0354

Browse files
author
3np
committed
qvm-features-request: unverbose logging of erroring qrexec calls
QubesOS/qubes-issues#9245
1 parent 2d29e17 commit adf0354

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

misc/qvm-features-request

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,15 @@ def main(args=None):
9999

100100
if args.commit:
101101
devnull = os.open(os.devnull, os.O_RDWR)
102-
subprocess.check_call(
103-
['qrexec-client-vm', 'dom0', 'qubes.FeaturesRequest'],
104-
stdin=devnull, stdout=devnull)
102+
cmd = ['qrexec-client-vm', 'dom0', 'qubes.FeaturesRequest']
103+
try:
104+
subprocess.check_call(cmd, stdin=devnull, stdout=devnull)
105+
except subprocess.CalledProcessError as e:
106+
print(
107+
f"Error: Command `{' '.join(cmd)}` returned exit code {e.returncode}",
108+
file=sys.stderr
109+
)
110+
any_error = True
105111

106112
if any_error:
107113
return 1

0 commit comments

Comments
 (0)