Match on more messages, verup dependencies/
This commit is contained in:
parent
9b88ac7a90
commit
86ac9be07d
@ -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,[]}}]}.
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
%%% @end
|
||||
|
||||
-module(gajumine).
|
||||
-vsn("0.3.0").
|
||||
-vsn("0.3.1").
|
||||
-behavior(application).
|
||||
-author("Craig Everett <craigeverett@qpq.swiss>").
|
||||
-copyright("QPQ AG <craigeverett@qpq.swiss>").
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
%%% @end
|
||||
|
||||
-module(gmc_con).
|
||||
-vsn("0.3.0").
|
||||
-vsn("0.3.1").
|
||||
-author("Craig Everett <craigeverett@qpq.swiss>").
|
||||
-copyright("QPQ AG <craigeverett@qpq.swiss>").
|
||||
-license("GPL-3.0-or-later").
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
%%% @end
|
||||
|
||||
-module(gmc_conf).
|
||||
-vsn("0.3.0").
|
||||
-vsn("0.3.1").
|
||||
-author("Craig Everett <craigeverett@qpq.swiss>").
|
||||
-copyright("QPQ AG <craigeverett@qpq.swiss>").
|
||||
-license("GPL-3.0-or-later").
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
%%% @end
|
||||
|
||||
-module(gmc_gui).
|
||||
-vsn("0.3.0").
|
||||
-vsn("0.3.1").
|
||||
-author("Craig Everett <craigeverett@qpq.swiss>").
|
||||
-copyright("QPQ AG <craigeverett@qpq.swiss>").
|
||||
-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]),
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
%%% @end
|
||||
|
||||
-module(gmc_sup).
|
||||
-vsn("0.3.0").
|
||||
-vsn("0.3.1").
|
||||
-behaviour(supervisor).
|
||||
-author("Craig Everett <craigeverett@qpq.swiss>").
|
||||
-copyright("QPQ AG <craigeverett@qpq.swiss>").
|
||||
|
||||
10
zomp.meta
10
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}},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user