#256 Attempt to fix Rust linter issues again

This commit is contained in:
w0rp 2017-02-07 15:19:37 +00:00
parent da8408501c
commit c0ac393297

View File

@ -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