proxy parsing errors

This commit is contained in:
Alexander Strizhakov 2020-03-03 17:27:22 +03:00
parent 6ebf389d6e
commit aaa879ce75
No known key found for this signature in database
GPG Key ID: 022896A53AEF1381
1 changed files with 4 additions and 4 deletions

View File

@ -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