mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-14 00:48:57 +08:00
Support strings in data field of error responses
This commit is contained in:
1 parent
d22b9bf1a6
commit
021f59b3f4
2 files changed
+19
-4
No files matched your search
@@ -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