on master help sign in
Print the binary required by the debug adapter (#5195)
b12c656Eric Thorburn
helix-term/src/health.rs+2−2
@@ -281,9 +281,9 @@ fn probe_protocol(protocol_name: &str, server_cmd: Option<String>) -> std::io::R
281 writeln!(stdout, "Configured {}: {}", protocol_name, cmd_name)?;
281 writeln!(stdout, "Configured {}: {}", protocol_name, cmd_name)?;
282
282
283 if let Some(cmd) = server_cmd {
283 if let Some(cmd) = server_cmd {
284− let path = match which::which(cmd) {
284+ let path = match which::which(&cmd) {
285 Ok(path) => path.display().to_string().green(),
285 Ok(path) => path.display().to_string().green(),
286− Err(_) => "Not found in $PATH".to_string().red(),
286+ Err(_) => format!("'{}' not found in $PATH", cmd).red(),
287 };
287 };
288 writeln!(stdout, "Binary for {}: {}", protocol_name, path)?;
288 writeln!(stdout, "Binary for {}: {}", protocol_name, path)?;
289 }
289 }