diff options
author | DJMcNab <[email protected]> | 2019-01-26 20:58:50 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2019-01-26 20:58:50 +0000 |
commit | 9fbbb8f6096836642704e34e42c9b9ea82807e7c (patch) | |
tree | e8ecc05d08ab81000e03ed6a5a33e0c880df4d49 /crates/ra_lsp_server/src/main_loop | |
parent | d9456c3989bf1988e266b22e76a995b20eae7ae4 (diff) |
Don't use the reserved error code
Diffstat (limited to 'crates/ra_lsp_server/src/main_loop')
-rw-r--r-- | crates/ra_lsp_server/src/main_loop/handlers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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( | |||
538 | let captured_stdout = String::from_utf8(output.stdout)?; | 538 | let captured_stdout = String::from_utf8(output.stdout)?; |
539 | if !output.status.success() { | 539 | if !output.status.success() { |
540 | return Err(LspError::new( | 540 | return Err(LspError::new( |
541 | gen_lsp_server::ErrorCode::ParseError as i32, | 541 | -32900, |
542 | format!( | 542 | format!( |
543 | r#"rustfmt exited with: | 543 | r#"rustfmt exited with: |
544 | Status: {} | 544 | Status: {} |