internal: Show more project building errors to the user

This commit is contained in:
Lukas Wirth 2022-04-11 14:38:30 +02:00
parent cf9c825c9e
commit b23b276310
8 changed files with 82 additions and 51 deletions

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: {:?})\nCargo's stderr output:\n{}",
"Cargo watcher failed, the command produced no valid metadata (exit code: {:?}):\n{}",
output.status, error
)))
}