mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 05:45:12 +00:00
Merge #3251
3251: Better errorse r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
f761ed2abb
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ pub fn main_loop(
|
||||||
match workspace {
|
match workspace {
|
||||||
Ok(workspace) => loaded_workspaces.push(workspace),
|
Ok(workspace) => loaded_workspaces.push(workspace),
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
log::error!("loading workspace failed: {}", e);
|
log::error!("loading workspace failed: {:?}", e);
|
||||||
if let Some(ra_project_model::CargoTomlNotFoundError(_)) = e.downcast_ref()
|
if let Some(ra_project_model::CargoTomlNotFoundError(_)) = e.downcast_ref()
|
||||||
{
|
{
|
||||||
if !feature_flags.get("notifications.cargo-toml-not-found") {
|
if !feature_flags.get("notifications.cargo-toml-not-found") {
|
||||||
|
@ -123,7 +123,7 @@ pub fn main_loop(
|
||||||
}
|
}
|
||||||
show_message(
|
show_message(
|
||||||
req::MessageType::Error,
|
req::MessageType::Error,
|
||||||
format!("rust-analyzer failed to load workspace: {}", e),
|
format!("rust-analyzer failed to load workspace: {:?}", e),
|
||||||
&connection.sender,
|
&connection.sender,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue