mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-02-24 14:58:35 +08:00
parent
3f229269b7
commit
4f44d4c760
1 changed files with 4 additions and 4 deletions
|
@ -185,11 +185,11 @@ defmodule Livebook.Teams.WebSocket do
|
|||
{:ok, conn} <- Mint.WebSocket.stream_request_body(conn, ref, data) do
|
||||
{:ok, conn, websocket}
|
||||
else
|
||||
{:error, %Mint.HTTP1{} = conn, reason} ->
|
||||
{:error, conn, websocket, reason}
|
||||
{:error, %Mint.HTTP1{} = conn, exception} when is_exception(exception) ->
|
||||
{:error, conn, websocket, Exception.message(exception)}
|
||||
|
||||
{:error, websocket, reason} ->
|
||||
{:error, conn, websocket, reason}
|
||||
{:error, websocket, exception} when is_exception(exception) ->
|
||||
{:error, conn, websocket, Exception.message(exception)}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue