Merge "Append detailed printing information when exec_sudo fails"
This commit is contained in:
commit
2193c7c348
@ -136,7 +136,7 @@ def exec_sudo(cmd):
|
||||
proc.wait()
|
||||
|
||||
if proc.returncode:
|
||||
e = BlockDeviceSetupException("exec_sudo failed")
|
||||
e = BlockDeviceSetupException("exec_sudo failed: %s" % out)
|
||||
e.returncode = proc.returncode
|
||||
e.cmd = ' '.join(sudo_cmd)
|
||||
e.output = out
|
||||
|
Loading…
Reference in New Issue
Block a user