Merge pull request #1720 from MTDL9/fix-error-response-string-data

Fix E712 error in ale#lsp#response#GetErrorMessage when receiving string primitives in the error.data field
This commit is contained in:
w0rp
2018-07-13 09:30:54 +01:00
committed by w0rp
parent 7d66293bbc
commit 033a6c1178
2 changed files with 19 additions and 4 deletions

View File

@@ -63,3 +63,12 @@ Execute(Messages with tracebacks should be handled):
\ },
\ },
\})
Execute(Messages with string data should be handled):
AssertEqual "xyz\nUncaught Exception", ale#lsp#response#GetErrorMessage({
\ 'error': {
\ 'code': -32602,
\ 'message': 'xyz',
\ 'data': 'Uncaught Exception',
\ },
\})