Skip to content

Commit 1fcfc5a

Browse files
committed
Wrap TunnelProxy errors
1 parent 63ce63c commit 1fcfc5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mint/tunnel_proxy.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ defmodule Mint.TunnelProxy do
4747
# Note that we may leak messages if the server sent data after the CONNECT response
4848
case Negotiate.upgrade(proxy_scheme, socket, scheme, hostname, port, opts) do
4949
{:ok, conn} -> {:ok, HTTP.put_proxy_headers(conn, proxy_headers)}
50-
{:error, reason} -> wrap_in_proxy_error(reason)
50+
{:error, reason} -> {:error, wrap_in_proxy_error(reason)}
5151
end
5252
end
5353

0 commit comments

Comments
 (0)