summaryrefslogtreecommitdiff
path: root/test/lsp/test_lsp_error_parsing.vader
diff options
context:
space:
mode:
authorMTDL9 <40929090+MTDL9@users.noreply.github.com>2018-07-13 06:42:28 +0200
committerMTDL9 <40929090+MTDL9@users.noreply.github.com>2018-07-13 06:42:28 +0200
commit021f59b3f4570cc3f2f459a3d019743c5beb8ac9 (patch)
tree5fb4fa8643c4247eaaebc0e411775ffc8c9cddb4 /test/lsp/test_lsp_error_parsing.vader
parentd22b9bf1a694aad94a8249457045149b8fce7255 (diff)
downloadale-021f59b3f4570cc3f2f459a3d019743c5beb8ac9.zip
Support strings in data field of error responses
Diffstat (limited to 'test/lsp/test_lsp_error_parsing.vader')
-rw-r--r--test/lsp/test_lsp_error_parsing.vader9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lsp/test_lsp_error_parsing.vader b/test/lsp/test_lsp_error_parsing.vader
index 7464b0e7..44169c80 100644
--- a/test/lsp/test_lsp_error_parsing.vader
+++ b/test/lsp/test_lsp_error_parsing.vader
@@ -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',
+ \ },
+ \})