Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions apps/mg_progressor/src/mg_progressor.erl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ handle_function('Repair', {MachineDesc, PackedArgs}, Context) ->
{ok, mg_woody_packer:pack(repair_response, marshal(term, RawResponse))};
{error, <<"process is running">>} = Error ->
handle_error(Error);
{error, <<"process is init">>} ->
handle_error({error, <<"process not found">>});
{error, <<"process not found">>} = Error ->
handle_error(Error);
{error, <<"namespace not found">>} = Error ->
Expand Down Expand Up @@ -102,6 +104,8 @@ handle_error({error, <<"process already exists">>}) ->
erlang:throw({logic, machine_already_exist});
handle_error({error, <<"process not found">>}) ->
erlang:throw({logic, machine_not_found});
handle_error({error, <<"process is init">>}) ->
erlang:throw({logic, machine_not_found});
handle_error({error, <<"namespace not found">>}) ->
erlang:throw({logic, namespace_not_found});
handle_error({error, <<"process is running">>}) ->
Expand Down
2 changes: 1 addition & 1 deletion rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

{deps, [
{genlib, {git, "https://github.com/valitydev/genlib", {tag, "v1.1.0"}}},
{progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v1.0.19"}}},
{progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v1.0.20"}}},
% for configurator script
{yamerl, {git, "https://github.com/valitydev/yamerl", {branch, master}}},
{cg_mon, {git, "https://github.com/valitydev/cg_mon", {branch, master}}}
Expand Down
2 changes: 1 addition & 1 deletion rebar.lock
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
0},
{<<"progressor">>,
{git,"https://github.com/valitydev/progressor.git",
{ref,"27e9fc7a4c37ca903883676aa1409034c7b3ea9e"}},
{ref,"6033631d3e1eb9593acf7841d8a635146ff482e8"}},
0},
{<<"prometheus">>,{pkg,<<"prometheus">>,<<"4.11.0">>},0},
{<<"prometheus_cowboy">>,{pkg,<<"prometheus_cowboy">>,<<"0.1.9">>},0},
Expand Down
Loading