From 3aa5e0f9dc615ba8e30ef5a2e978d2c8a7fea17f Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 1 Aug 2018 23:01:23 +0100 Subject: [PATCH] Add a type check for the error data from LSP servers --- autoload/ale/lsp/response.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)