Add a type check for the error data from LSP servers

This commit is contained in:
w0rp 2018-08-01 23:01:23 +01:00
parent c1fee3f23a
commit 3aa5e0f9dc
No known key found for this signature in database
GPG Key ID: 0FC1ECAA8C81CD83
1 changed files with 1 additions and 1 deletions

View File

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