]> Sergey Matveev's repositories - vim-lsp.git/commitdiff
Display where a exception is thrown
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 17 Jan 2022 18:37:44 +0000 (10:37 -0800)
committerYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 17 Jan 2022 18:37:44 +0000 (10:37 -0800)
test/unit_tests.vim

index e5d7b289f03f31f2c725d070626305df03bafc75..6a5ec855792296d5051c6770422278c94470e7af 100644 (file)
@@ -481,9 +481,10 @@ def LspRunTests()
     v:errors = []
     v:errmsg = ''
     try
+      :%bw!
       exe f
     catch
-      call add(v:errors, "Error: Test " .. f .. " failed with exception " .. v:exception)
+      call add(v:errors, "Error: Test " .. f .. " failed with exception " .. v:exception .. " at " .. v:throwpoint)
     endtry
     if v:errmsg != ''
       call add(v:errors, "Error: Test " .. f .. " generated error " .. v:errmsg)