Minor
This commit is contained in:
parent
9e514f4c9d
commit
f05c86894d
@ -553,7 +553,14 @@ do_grids2({{sign, http}, URL}) ->
|
||||
ok = log(info, "Making request to ~p", [URL]),
|
||||
case httpc:request(URL) of
|
||||
{ok, {{_, 200, _}, _, JSON}} -> do_grids_sig(JSON, URL);
|
||||
{error, socket_closed_remotely} -> tell("Yep, closed remotely.");
|
||||
{error, socket_closed_remotely} -> log(info, "Socket closed remotely.");
|
||||
Error -> gmc_gui:trouble(Error)
|
||||
end;
|
||||
do_grids2({{sign, https}, URL}) ->
|
||||
ok = log(info, "Making request to ~p", [URL]),
|
||||
case httpc:request(URL) of
|
||||
{ok, {{_, 200, _}, _, JSON}} -> do_grids_sig(JSON, URL);
|
||||
{error, socket_closed_remotely} -> log(info, "Socket closed remotely.");
|
||||
Error -> gmc_gui:trouble(Error)
|
||||
end;
|
||||
do_grids2(Instruction) ->
|
||||
@ -656,7 +663,7 @@ do_sign_tx2(Request = #{"url" := URL}) ->
|
||||
Response = zj:encode(maps:with(ResponseKeys, Request)),
|
||||
case httpc:request(post, {URL, [], "application/json", Response}, [], []) of
|
||||
{ok, {{_, 200, _}, _, JSON}} -> log(info, "Signed TX posted: ~p", [JSON]);
|
||||
{error, socket_closed_remotely} -> tell("Closed remotely.");
|
||||
{error, socket_closed_remotely} -> log(info, "Socket closed remotely.");
|
||||
Error -> gmc_gui:trouble(Error)
|
||||
end.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user