Skip to content

Commit 66e8416

Browse files
committed
Catch exception in job execution.
1 parent 9d4a275 commit 66e8416

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/server/lsp-servers.adb

+5-1
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,10 @@ package body LSP.Servers is
853853
end;
854854
end select;
855855
end loop;
856+
exception
857+
when E : others =>
858+
-- Message handler should never raise any exception
859+
Server.Tracer.Trace_Exception (E, "Execute_Jobs raised error!");
856860
end Execute_Jobs;
857861

858862
---------------------
@@ -884,7 +888,7 @@ package body LSP.Servers is
884888
exception
885889
when E : others =>
886890
-- Message handler should never raise any exception
887-
Server.Tracer.Trace_Exception (E, "Message handler raised error!");
891+
Server.Tracer.Trace_Exception (E, "Process_Message raised error!");
888892
end Process_Message;
889893

890894
Request : Server_Message_Access;

0 commit comments

Comments
 (0)