return error if connection failed to open

This commit is contained in:
Alexander Strizhakov 2020-03-03 16:27:46 +03:00
parent 7d68924e4f
commit 8fc00b7cbf
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381

View File

@ -90,7 +90,7 @@ defmodule Pleroma.Gun.Conn do
} #{inspect(error)}"
)
nil
error
end
end
@ -126,7 +126,7 @@ defmodule Pleroma.Gun.Conn do
} #{inspect(error)}"
)
nil
error
end
end
@ -144,7 +144,7 @@ defmodule Pleroma.Gun.Conn do
}"
)
nil
error
end
end
@ -169,7 +169,7 @@ defmodule Pleroma.Gun.Conn do
do_open(uri, opts)
else
[] -> nil
[] -> {:error, :pool_overflowed}
end
end
end