diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-02-20 17:41:41 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-20 17:41:41 +0000 |
commit | f761ed2abb3faa07f9a835e9ba767954ca2e684b (patch) | |
tree | 121750a13a6930858739bfc28922054e57016c49 /crates | |
parent | a8beff9cf69f81653c8f633fc663550ce0a76383 (diff) | |
parent | 7f4b205b7247fa4d9fbb8cb3cfbaf8fa98afbd35 (diff) |
Merge #3251
3251: Better errorse r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <[email protected]>
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 | } |