mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 08:36:29 +00:00
return error if connection failed to open
This commit is contained in:
parent
7d68924e4f
commit
8fc00b7cbf
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue