diff options
Diffstat (limited to 'crates')
-rw-r--r-- | crates/rust-analyzer/src/main_loop.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/rust-analyzer/src/main_loop.rs b/crates/rust-analyzer/src/main_loop.rs index 71917a62e..98306986b 100644 --- a/crates/rust-analyzer/src/main_loop.rs +++ b/crates/rust-analyzer/src/main_loop.rs | |||
@@ -114,7 +114,7 @@ pub fn main_loop( | |||
114 | match workspace { | 114 | match workspace { |
115 | Ok(workspace) => loaded_workspaces.push(workspace), | 115 | Ok(workspace) => loaded_workspaces.push(workspace), |
116 | Err(e) => { | 116 | Err(e) => { |
117 | log::error!("loading workspace failed: {}", e); | 117 | log::error!("loading workspace failed: {:?}", e); |
118 | if let Some(ra_project_model::CargoTomlNotFoundError(_)) = e.downcast_ref() | 118 | if let Some(ra_project_model::CargoTomlNotFoundError(_)) = e.downcast_ref() |
119 | { | 119 | { |
120 | if !feature_flags.get("notifications.cargo-toml-not-found") { | 120 | if !feature_flags.get("notifications.cargo-toml-not-found") { |
@@ -123,7 +123,7 @@ pub fn main_loop( | |||
123 | } | 123 | } |
124 | show_message( | 124 | show_message( |
125 | req::MessageType::Error, | 125 | req::MessageType::Error, |
126 | format!("rust-analyzer failed to load workspace: {}", e), | 126 | format!("rust-analyzer failed to load workspace: {:?}", e), |
127 | &connection.sender, | 127 | &connection.sender, |
128 | ); | 128 | ); |
129 | } | 129 | } |