summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-08-01 23:01:23 +0100
committerw0rp <devw0rp@gmail.com>2018-08-01 23:01:30 +0100
commit3aa5e0f9dc615ba8e30ef5a2e978d2c8a7fea17f (patch)
tree94751e3809273ff03b868da5f564f1548e299592 /autoload
parentc1fee3f23a8c9fc4543c90044744f6f59293dbae (diff)
downloadale-3aa5e0f9dc615ba8e30ef5a2e978d2c8a7fea17f.zip
Add a type check for the error data from LSP servers
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/lsp/response.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/ale/lsp/response.vim b/autoload/ale/lsp/response.vim
index 48740ad1..4b67d641 100644
--- a/autoload/ale/lsp/response.vim
+++ b/autoload/ale/lsp/response.vim
@@ -110,7 +110,7 @@ function! ale#lsp#response#GetErrorMessage(response) abort
if type(l:error_data) is v:t_string
let l:message .= "\n" . l:error_data
- else
+ elseif type(l:error_data) is v:t_dict
let l:traceback = get(l:error_data, 'traceback', [])
if type(l:traceback) is v:t_list && !empty(l:traceback)