File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ Take a look at before and after
99** Before:**
1010
1111``` lua
12- client . request (' workspace/executeCommand' , cmd_info , function (err , res )
12+ request (' workspace/executeCommand' , cmd_info , function (err , res )
1313 if err then
1414 log .error (err )
1515 else
@@ -22,7 +22,7 @@ end, buffer)
2222
2323``` lua
2424-- on error, statement will fail throwing an error just like any synchronous API
25- local result = client . request (' workspace/executeCommand' , cmd_info , buffer )
25+ local result = request (' workspace/executeCommand' , cmd_info , buffer )
2626log .debug (result )
2727```
2828
@@ -88,3 +88,11 @@ runner(function()
8888 end )
8989 .run ()
9090```
91+
92+ ### Output
93+
94+ ``` txt
95+ 18:44:46 starting the execution
96+ 18:44:48 success_result is: hello world
97+ 18:44:50 parent error handler ...-async-await/lua/async/waits/wait_with_error_handler.lua:14: ...-async-await/lua/async/waits/wait_with_error_handler.lua:14: something went wrong
98+ ```
You can’t perform that action at this time.
0 commit comments