- raise RuntimeError("remctl to host %s returned non-zero exit status %d"
- % (s, p.returncode))
- return [(s, yaml.load(o[1], yaml.CSafeLoader)) for (s, o) in outputs.iteritems()]
+ raise RuntimeError("remctl to host %s returned non-zero exit status %d; stderr:\n%s"
+ % (s, p.returncode, outputs[s][1]))
+ return [(s, yaml.load(o[0], yaml.CSafeLoader)) for (s, o) in outputs.iteritems()]