Improve error message formatting when a command errors out in a subprocess.