Support strings in data field of error responses

This commit is contained in:
MTDL9
2018-07-13 06:42:28 +02:00
parent d22b9bf1a6
commit 021f59b3f4
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',
\ },
\})