From b7d8bf12622f25a3c96f50b4079132718ea404db Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 21 Dec 2018 11:08:43 +0300 Subject: tweak canceled message --- crates/ra_db/src/lib.rs | 2 +- crates/ra_lsp_server/src/main_loop.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates') diff --git a/crates/ra_db/src/lib.rs b/crates/ra_db/src/lib.rs index 65fa3cbfa..0aca6f343 100644 --- a/crates/ra_db/src/lib.rs +++ b/crates/ra_db/src/lib.rs @@ -15,7 +15,7 @@ pub type Cancelable = Result; impl std::fmt::Display for Canceled { fn fmt(&self, fmt: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { - fmt.write_str("Canceled") + fmt.write_str("canceled") } } diff --git a/crates/ra_lsp_server/src/main_loop.rs b/crates/ra_lsp_server/src/main_loop.rs index 1d6e3e5d6..afe0fec89 100644 --- a/crates/ra_lsp_server/src/main_loop.rs +++ b/crates/ra_lsp_server/src/main_loop.rs @@ -387,7 +387,7 @@ impl<'a> PoolDispatcher<'a> { RawResponse::err( id, ErrorCode::ContentModified as i32, - e.to_string(), + format!("content modified: {}", e), ) } else { RawResponse::err( -- cgit v1.2.3