Print stderr on subcommand failure
This commit is contained in:
parent
2efd3e3f9f
commit
7919edce31
@ -62,4 +62,8 @@ if __name__ == "__main__":
|
||||
argp.add_argument("--list-suffix", help="Suffix for mailing lists")
|
||||
args = argp.parse_args()
|
||||
|
||||
try:
|
||||
main(args.bin, args.api, args.token, args.list_suffix)
|
||||
except subprocess.CalledProcessError as e:
|
||||
print(e.stderr)
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user