Better error message hinting about cargo clippy

This commit is contained in:
Cadu 2022-04-03 13:48:10 -03:00
parent 5a6918f1c4
commit 635270d4ad

View file

@ -329,7 +329,7 @@ impl CargoActor {
Ok(output) if output.status.success() => Ok(()),
Ok(output) => {
Err(io::Error::new(io::ErrorKind::Other, format!(
"Cargo watcher failed, the command produced no valid metadata (exit code: {:?})",
"Cargo watcher failed, the command produced no valid metadata (exit code: {:?})\nMake sure to have `cargo clippy` installed.",
output.status
)))
}