mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Improve html-checker error message
The previous message omits which of the dozens of tools called tidy is meant. And it's written in a way that one can easily miss the *not*, thinking it reads "Note that `tidy` is the in-tree `src/tools/tidy` but needs to be installed". The error message should hopefully help future contributors.
This commit is contained in:
@@ -201,7 +201,7 @@ fn run(self, builder: &Builder<'_>) {
|
||||
if !check_if_tidy_is_installed() {
|
||||
eprintln!("not running HTML-check tool because `tidy` is missing");
|
||||
eprintln!(
|
||||
"Note that `tidy` is not the in-tree `src/tools/tidy` but needs to be installed"
|
||||
"You need the HTML tidy tool https://www.html-tidy.org/, this tool is *not* part of the rust project and needs to be installed separately, for example via your package manager."
|
||||
);
|
||||
panic!("Cannot run html-check tests");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user