forked from YokaiRick/akkoma
proxy parsing errors
This commit is contained in:
parent
6ebf389d6e
commit
aaa879ce75
1 changed files with 4 additions and 4 deletions
|
@ -71,15 +71,15 @@ def parse_proxy(proxy) when is_binary(proxy) do
|
|||
else
|
||||
{_, _} ->
|
||||
Logger.warn("parsing port in proxy fail #{inspect(proxy)}")
|
||||
{:error, :error_parsing_port_in_proxy}
|
||||
{:error, :invalid_proxy_port}
|
||||
|
||||
:error ->
|
||||
Logger.warn("parsing port in proxy fail #{inspect(proxy)}")
|
||||
{:error, :error_parsing_port_in_proxy}
|
||||
{:error, :invalid_proxy_port}
|
||||
|
||||
_ ->
|
||||
Logger.warn("parsing proxy fail #{inspect(proxy)}")
|
||||
{:error, :error_parsing_proxy}
|
||||
{:error, :invalid_proxy}
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -89,7 +89,7 @@ def parse_proxy(proxy) when is_tuple(proxy) do
|
|||
else
|
||||
_ ->
|
||||
Logger.warn("parsing proxy fail #{inspect(proxy)}")
|
||||
{:error, :error_parsing_proxy}
|
||||
{:error, :invalid_proxy}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue