code, run `./x.py fmt` instead.",
cmd_debug,
);
- std::process::exit(1);
+ crate::detail_exit(1);
}
}
}
let rustfmt_path = build.initial_rustfmt().unwrap_or_else(|| {
eprintln!("./x.py fmt is not supported on this channel");
- std::process::exit(1);
+ crate::detail_exit(1);
});
assert!(rustfmt_path.exists(), "{}", rustfmt_path.display());
let src = build.src.clone();