Skip to content

Commit 5504b17

Browse files
committed
fix: avoid FunctionClauseError in transport stream
1 parent b9cba07 commit 5504b17

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/gen_lsp/test.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ defmodule GenLSP.Test do
8282

8383
{:error, reason} ->
8484
IO.warn("Unable to read from device: #{inspect(reason)}")
85+
86+
other ->
87+
IO.warn(
88+
"Ended stream with value: #{inspect(other)}. This was probably due to something going wrong."
89+
)
8590
end
8691
)
8792
|> Enum.to_list()

0 commit comments

Comments
 (0)