diff --git a/src/gmc_con.erl b/src/gmc_con.erl index 164aa6f..ab5b942 100644 --- a/src/gmc_con.erl +++ b/src/gmc_con.erl @@ -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.