diff options
Diffstat (limited to 'crates/ra_editor')
-rw-r--r-- | crates/ra_editor/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_editor/src/lib.rs b/crates/ra_editor/src/lib.rs index 3186eaf1a..25124dbe3 100644 --- a/crates/ra_editor/src/lib.rs +++ b/crates/ra_editor/src/lib.rs | |||
@@ -103,8 +103,8 @@ pub fn diagnostics(file: &File) -> Vec<Diagnostic> { | |||
103 | file.errors() | 103 | file.errors() |
104 | .into_iter() | 104 | .into_iter() |
105 | .map(|err| Diagnostic { | 105 | .map(|err| Diagnostic { |
106 | range: TextRange::offset_len(err.offset, 1.into()), | 106 | range: err.range, |
107 | msg: "Syntax Error: ".to_string() + &err.msg, | 107 | msg: format!("Syntax Error: {}", err.kind), |
108 | }) | 108 | }) |
109 | .collect() | 109 | .collect() |
110 | } | 110 | } |