(d, template)
| 202 | result.check_returncode() |
| 203 | except subprocess.CalledProcessError as e: |
| 204 | def formatdict(d, template): |
| 205 | return '\n'.join( |
| 206 | template.format(k, v) for k, v in sorted(d.items()) |
| 207 | ) |
| 208 | msg = ( |
| 209 | "`{cmd}` exited with a non-zero exit code {code}, see the " |
| 210 | "process log above.\n\nThe {bin} command was " |