|
|
@ -56,6 +56,7 @@ defmodule EthereumJSONRPC.Contract do |
|
|
|
|> case do |
|
|
|
|> case do |
|
|
|
{:ok, responses} -> responses |
|
|
|
{:ok, responses} -> responses |
|
|
|
{:error, {:bad_gateway, _request_url}} -> raise "Bad gateway" |
|
|
|
{:error, {:bad_gateway, _request_url}} -> raise "Bad gateway" |
|
|
|
|
|
|
|
{:error, {reason, _request_url}} -> raise to_string(reason) |
|
|
|
{:error, reason} when is_atom(reason) -> raise Atom.to_string(reason) |
|
|
|
{:error, reason} when is_atom(reason) -> raise Atom.to_string(reason) |
|
|
|
{:error, error} -> raise error |
|
|
|
{:error, error} -> raise error |
|
|
|
end |
|
|
|
end |
|
|
|