diff options
-rw-r--r-- | ale_linters/rust/rustc.vim | 2 |
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 |