Skip to content

Commit

Permalink
Merge pull request #1688 from poanetwork/ab-fix-atom-reason
Browse files Browse the repository at this point in the history
do not fail if failure reason is atom
  • Loading branch information
ayrat555 committed Apr 1, 2019
2 parents fcfc1a8 + 2dacb92 commit 9230a09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### Fixes

- [#1669](https://github.com/poanetwork/blockscout/pull/1669) - do not fail if multiple matching tokens are found
- [#1688](https://github.com/poanetwork/blockscout/pull/1688) - do not fail if failure reason is atom

### Chore

Expand Down
1 change: 1 addition & 0 deletions apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/contract.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ defmodule EthereumJSONRPC.Contract do
|> case do
{:ok, responses} -> responses
{:error, {:bad_gateway, _request_url}} -> raise "Bad gateway"
{:error, reason} when is_atom(reason) -> raise Atom.to_string(reason)
{:error, error} -> raise error
end
|> Enum.into(%{}, &{&1.id, &1})
Expand Down

0 comments on commit 9230a09

Please sign in to comment.