mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-04 00:52:50 +08:00
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:
@@ -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',
|
||||
\ },
|
||||
\})
|
||||
|
||||
Reference in New Issue
Block a user