mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
ra_cargo_watch: log exit code too
This commit is contained in:
parent
788b29d343
commit
8be28a2d4f
1 changed files with 5 additions and 1 deletions
|
@ -318,7 +318,11 @@ pub fn run_cargo(
|
|||
Ok(exit_code) if !exit_code.success() && !read_at_least_one_message => {
|
||||
// FIXME: Read the stderr to display the reason, see `read2()` reference in PR comment:
|
||||
// https://github.com/rust-analyzer/rust-analyzer/pull/3632#discussion_r395605298
|
||||
format!("the command produced no valid metadata: cargo {}", args.join(" "))
|
||||
format!(
|
||||
"the command produced no valid metadata (exit code: {:?}): cargo {}",
|
||||
exit_code,
|
||||
args.join(" ")
|
||||
)
|
||||
}
|
||||
Err(err) => format!("io error: {:?}", err),
|
||||
Ok(_) => return Ok(()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue