diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_env/src/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crates/ra_env/src/lib.rs b/crates/ra_env/src/lib.rs index cb9fbf80c..df20f783d 100644 --- a/crates/ra_env/src/lib.rs +++ b/crates/ra_env/src/lib.rs | |||
@@ -23,7 +23,10 @@ pub fn get_path_for_executable(executable_name: impl AsRef<str>) -> Result<Strin | |||
23 | if is_valid_executable(&path) { | 23 | if is_valid_executable(&path) { |
24 | Ok(path) | 24 | Ok(path) |
25 | } else { | 25 | } else { |
26 | Err(Error::msg(format!("`{}` environment variable points to something that's not a valid executable", env_var))) | 26 | Err(Error::msg(format!( |
27 | "`{}` environment variable points to something that's not a valid executable", | ||
28 | env_var | ||
29 | ))) | ||
27 | } | 30 | } |
28 | } else { | 31 | } else { |
29 | let final_path: Option<String> = if is_valid_executable(executable_name) { | 32 | let final_path: Option<String> = if is_valid_executable(executable_name) { |