forked from Mirror/pmbootstrap
Print return code when subprocess fails (MR 2161)
It can be very useful to figure out why a particular subprocess might be failing ;)
This commit is contained in:
parent
ff0942b12d
commit
36aabcc4fe
2 changed files with 5 additions and 3 deletions
|
@ -216,7 +216,8 @@ def check_return_code(args, code, log_message):
|
|||
logging.debug("^" * 70)
|
||||
logging.info("NOTE: The failed command's output is above the ^^^ line"
|
||||
" in the log file: " + args.log)
|
||||
raise RuntimeError("Command failed: " + log_message)
|
||||
raise RuntimeError(f"Command failed (exit code {str(code)}): " +
|
||||
log_message)
|
||||
|
||||
|
||||
def sudo_timer_iterate():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue