Don't use the reserved error code

This commit is contained in:
DJMcNab 2019-01-26 20:58:50 +00:00
parent d9456c3989
commit 9fbbb8f609

View file

@ -538,7 +538,7 @@ pub fn handle_formatting(
let captured_stdout = String::from_utf8(output.stdout)?; let captured_stdout = String::from_utf8(output.stdout)?;
if !output.status.success() { if !output.status.success() {
return Err(LspError::new( return Err(LspError::new(
gen_lsp_server::ErrorCode::ParseError as i32, -32900,
format!( format!(
r#"rustfmt exited with: r#"rustfmt exited with:
Status: {} Status: {}