added printing error to stdout

This commit is contained in:
Krystian Dużyński 2024-06-28 22:38:12 +02:00
parent 485a995855
commit 0aebb4a69a

View File

@ -160,10 +160,11 @@ def main():
if args.reset: if args.reset:
subprocess.run(cargs) subprocess.run(cargs)
else: else:
out = subprocess.check_output(cargs).decode("utf-8") p = subprocess.run(cargs, stdout=subprocess.PIPE)
out = p.stdout.decode("utf-8")
if "Script file loaded and executed successfully" not in out: if "Script file loaded and executed successfully" not in out:
print("Script error") print("Script error", out)
exit(1) exit(1)