diff --git a/ebin/gajumine.app b/ebin/gajumine.app index f062d49..09b6de7 100644 --- a/ebin/gajumine.app +++ b/ebin/gajumine.app @@ -3,6 +3,6 @@ {registered,[]}, {included_applications,[]}, {applications,[stdlib,kernel]}, - {vsn,"0.3.0"}, + {vsn,"0.3.1"}, {modules,[gajumine,gmc_con,gmc_conf,gmc_gui,gmc_sup]}, {mod,{gajumine,[]}}]}. diff --git a/src/gajumine.erl b/src/gajumine.erl index 0d097a5..6008b58 100644 --- a/src/gajumine.erl +++ b/src/gajumine.erl @@ -3,7 +3,7 @@ %%% @end -module(gajumine). --vsn("0.3.0"). +-vsn("0.3.1"). -behavior(application). -author("Craig Everett "). -copyright("QPQ AG "). diff --git a/src/gmc_con.erl b/src/gmc_con.erl index 83990da..d31e513 100644 --- a/src/gmc_con.erl +++ b/src/gmc_con.erl @@ -3,7 +3,7 @@ %%% @end -module(gmc_con). --vsn("0.3.0"). +-vsn("0.3.1"). -author("Craig Everett "). -copyright("QPQ AG "). -license("GPL-3.0-or-later"). diff --git a/src/gmc_conf.erl b/src/gmc_conf.erl index dabff27..a537bec 100644 --- a/src/gmc_conf.erl +++ b/src/gmc_conf.erl @@ -3,7 +3,7 @@ %%% @end -module(gmc_conf). --vsn("0.3.0"). +-vsn("0.3.1"). -author("Craig Everett "). -copyright("QPQ AG "). -license("GPL-3.0-or-later"). diff --git a/src/gmc_gui.erl b/src/gmc_gui.erl index 4e8b9bd..c427cc1 100644 --- a/src/gmc_gui.erl +++ b/src/gmc_gui.erl @@ -3,7 +3,7 @@ %%% @end -module(gmc_gui). --vsn("0.3.0"). +-vsn("0.3.1"). -author("Craig Everett "). -copyright("QPQ AG "). -license("GPL-3.0-or-later"). @@ -296,6 +296,28 @@ do_message({connected, _}, State) -> do_message({disconnected, _}, State) -> Entry = "\nDisconnected!", do_message2(Entry, State); +do_message({error, #{info := #{info := #{error := get_failed, data := {error, #{code := 404}}, url := URL}}}}, State) -> + ID = + case uri_string:parse(URL) of + #{path := Path} -> + lists:last(string:split(Path, "/", trailing)); + {error, Reason, Info} -> + ok = log(warning, "uri_string:parse/1 failed with: ~p: ~p", [Reason, Info]), + "UNKNOWN" + end, + Format = + "\nLookup for mining ID ~s failed." + "\nCheck that you have joined the hive and have your account ID configured correctly.", + Entry = io_lib:format(Format, [ID]), + do_message2(Entry, State); +do_message({error, #{info := #{info := #{error := get_failed, data := {error, #{code := 443}}}}}}, State) -> + Entry = + "\nThis system is not providing the needed TLS CA Certificate." + "\nlease contact the support community and let them know you have a 443 error with GajuMine.", + do_message2(Entry, State); +do_message({error, #{info := #{info := #{error := connect_failure, data := {error, failed}}, module := gmhc_eureka}}}, State) -> + Entry = "\nConnection terminated. Retrying.", + do_message2(Entry, State); do_message(Terms, State) -> tell(info, "~p", [Terms]), Entry = io_lib:format("~n~tp", [Terms]), diff --git a/src/gmc_sup.erl b/src/gmc_sup.erl index 7829dfb..e567608 100644 --- a/src/gmc_sup.erl +++ b/src/gmc_sup.erl @@ -12,7 +12,7 @@ %%% @end -module(gmc_sup). --vsn("0.3.0"). +-vsn("0.3.1"). -behaviour(supervisor). -author("Craig Everett "). -copyright("QPQ AG "). diff --git a/zomp.meta b/zomp.meta index b6c3351..094f624 100644 --- a/zomp.meta +++ b/zomp.meta @@ -4,11 +4,11 @@ {prefix,"gmc"}. {author,"Craig Everett"}. {desc,"Mining client for the Gajumaru Root"}. -{package_id,{"qpq","gajumine",{0,3,0}}}. -{deps,[{"qpq","cuckoo_cpu",{0,3,2}}, - {"uwiger","gmhive_worker",{0,4,0}}, - {"uwiger","gmhive_client",{0,4,4}}, - {"uwiger","gmcuckoo",{1,2,3}}, +{package_id,{"qpq","gajumine",{0,3,1}}}. +{deps,[{"uwiger","gmcuckoo",{1,2,4}}, + {"uwiger","gmhive_worker",{0,5,1}}, + {"uwiger","gmhive_client",{0,5,1}}, + {"qpq","cuckoo_cpu",{0,3,2}}, {"uwiger","gmconfig",{0,1,2}}, {"uwiger","gproc",{1,0,1}}, {"uwiger","gmhive_protocol",{0,1,1}},