From 7f4b205b7247fa4d9fbb8cb3cfbaf8fa98afbd35 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Thu, 20 Feb 2020 18:41:12 +0100 Subject: Better errorse --- crates/rust-analyzer/src/main_loop.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') 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( match workspace { Ok(workspace) => loaded_workspaces.push(workspace), 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 !feature_flags.get("notifications.cargo-toml-not-found") { @@ -123,7 +123,7 @@ pub fn main_loop( } show_message( req::MessageType::Error, - format!("rust-analyzer failed to load workspace: {}", e), + format!("rust-analyzer failed to load workspace: {:?}", e), &connection.sender, ); } -- cgit v1.2.3