pub fn ensure_success(output: &Output) -> Result<()>
Make sure a command finished successfully, otherwise throw an error.