mirror of
https://github.com/kbwo/testing-language-server.git
synced 2025-07-19 17:24:58 +00:00
(rust-adapter): pass stderr to testing-ls only when there is no stdout
This commit is contained in:
parent
607f43aa39
commit
83fd323226
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ impl Runner for CargoTestRunner {
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let Output { stdout, stderr, .. } = test_result;
|
let Output { stdout, stderr, .. } = test_result;
|
||||||
if !stderr.is_empty() {
|
if stdout.is_empty() && !stderr.is_empty() {
|
||||||
return Err(LSError::Adapter(String::from_utf8(stderr).unwrap()));
|
return Err(LSError::Adapter(String::from_utf8(stderr).unwrap()));
|
||||||
}
|
}
|
||||||
let test_result = String::from_utf8(stdout)?;
|
let test_result = String::from_utf8(stdout)?;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue