diff options
author | w0rp <devw0rp@gmail.com> | 2019-03-29 16:09:27 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-03-29 16:09:27 +0000 |
commit | 3eb6d7b3db5d76aae1d394f8615a52e1d4bee9fa (patch) | |
tree | 1a63b18cdf6160f279774ab992e58baf70c48b0c /autoload | |
parent | e1e8f0dae12fc8603ab2e949f34bce8106fa3263 (diff) | |
download | ale-3eb6d7b3db5d76aae1d394f8615a52e1d4bee9fa.zip |
#2395 - Handle empty output for redpen
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/ale/handlers/redpen.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/ale/handlers/redpen.vim b/autoload/ale/handlers/redpen.vim index 84e331ed..195057ca 100644 --- a/autoload/ale/handlers/redpen.vim +++ b/autoload/ale/handlers/redpen.vim @@ -4,10 +4,10 @@ function! ale#handlers#redpen#HandleRedpenOutput(buffer, lines) abort " Only one file was passed to redpen. So response array has only one " element. - let l:res = json_decode(join(a:lines))[0] + let l:res = get(ale#util#FuzzyJSONDecode(a:lines, []), 0, {}) let l:output = [] - for l:err in l:res.errors + for l:err in get(l:res, 'errors', []) let l:item = { \ 'text': l:err.message, \ 'type': 'W', |