From 9fbbb8f6096836642704e34e42c9b9ea82807e7c Mon Sep 17 00:00:00 2001 From: DJMcNab <36049421+DJMcNab@users.noreply.github.com> Date: Sat, 26 Jan 2019 20:58:50 +0000 Subject: Don't use the reserved error code --- crates/ra_lsp_server/src/main_loop/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_lsp_server/src/main_loop/handlers.rs') diff --git a/crates/ra_lsp_server/src/main_loop/handlers.rs b/crates/ra_lsp_server/src/main_loop/handlers.rs index 4fc15c796..ace3da020 100644 --- a/crates/ra_lsp_server/src/main_loop/handlers.rs +++ b/crates/ra_lsp_server/src/main_loop/handlers.rs @@ -538,7 +538,7 @@ pub fn handle_formatting( let captured_stdout = String::from_utf8(output.stdout)?; if !output.status.success() { return Err(LspError::new( - gen_lsp_server::ErrorCode::ParseError as i32, + -32900, format!( r#"rustfmt exited with: Status: {} -- cgit v1.2.3