Merge pull request #4439 from blockscout/np-fix-error-print
Fix error response in contract's outputpull/4444/head
commit
54e28d4d25
@ -1,10 +1,14 @@ |
|||||||
<div class="tile tile-muted tile-function-response monospace"> |
<div class="tile tile-muted tile-function-response monospace"> |
||||||
<pre> |
<pre> |
||||||
[ <strong><%= @function_name %></strong> method Response ] |
[ <strong><%= @function_name %></strong> method Response ] |
||||||
|
<%= case @outputs do %> |
||||||
[<%= for item <- @outputs do %> |
<% {:error, message} -> %> |
||||||
<%= if named_argument?(item) do %><span class="function-response-item"><%= item["name"] %></span><% end %> |
<span class="text-muted"><%=raw(values_with_type(message, :error))%></span> |
||||||
<span class="text-muted"><%= raw(values_with_type(item["value"], item["type"])) %></span> |
<% _ -> %> |
||||||
<% end %>] |
[<%= for item <- @outputs do %> |
||||||
|
<%= if named_argument?(item) do %><span class="function-response-item"><%= item["name"] %></span><% end %> |
||||||
|
<span class="text-muted"><%= raw(values_with_type(item["value"], item["type"])) %></span> |
||||||
|
<% end %>] |
||||||
|
<% end %> |
||||||
</pre> |
</pre> |
||||||
</div> |
</div> |
||||||
|
Loading…
Reference in new issue