summaryrefslogtreecommitdiff
path: root/ale_linters/rust/rustc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/rust/rustc.vim')
-rw-r--r--ale_linters/rust/rustc.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/rust/rustc.vim b/ale_linters/rust/rustc.vim
index c97c40e7..97d5d0bb 100644
--- a/ale_linters/rust/rustc.vim
+++ b/ale_linters/rust/rustc.vim
@@ -18,7 +18,7 @@ function! ale_linters#rust#rustc#HandleRustcErrors(buffer_number, errorlines) ab
let l:error = json_decode(l:errorline)
- if has_key(l:error, 'message')
+ if has_key(l:error, 'message') && type(l:error.message) == type({})
let l:error = l:error.message
endif