Skip to content

Commit b0673ec

Browse files
committed
do not raise exception
Signed-off-by: Rudi Grinberg <[email protected]>
1 parent 0b53f8a commit b0673ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ocaml-lsp-server/src/destruct_lsp.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ let code_action doc (params : CodeActionParams.t) =
3131
| Destruct.Not_allowed _ | Destruct.Useless_refine
3232
| Destruct.Nothing_to_do ) ->
3333
Ok None
34-
| Error exn -> raise exn )
34+
| Error exn -> Error (Jsonrpc.Response.Error.of_exn exn) )

0 commit comments

Comments
 (0)