chore: update error message

This commit is contained in:
kbwo 2024-12-02 19:39:23 +09:00
parent aa4883e038
commit c511c02107

View file

@ -317,8 +317,7 @@ impl TestingLS {
.map_err(|err| LSError::Adapter(err.to_string()))?; .map_err(|err| LSError::Adapter(err.to_string()))?;
let Output { stdout, stderr, .. } = output; let Output { stdout, stderr, .. } = output;
if !stderr.is_empty() { if !stderr.is_empty() {
let message = let message = "Error occurred when running test via adapter.\nCheck adapter log or run tests manually".to_string();
"Cannot run test command: \n".to_string() + &String::from_utf8(stderr).unwrap();
let message_type = MessageType::ERROR; let message_type = MessageType::ERROR;
let params: ShowMessageParams = ShowMessageParams { let params: ShowMessageParams = ShowMessageParams {
typ: message_type, typ: message_type,