Skip to content

Commit

Permalink
prevent exception on remote ok
Browse files Browse the repository at this point in the history
  • Loading branch information
ioolkos committed Nov 8, 2021
1 parent 1a4d60d commit 64fd324
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clique_status.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
-spec parse(status(), fun(), Acc0 :: term()) -> term().
parse([], Fun, Acc) ->
Fun(done, Acc);
parse(ok, Fun, Acc) ->
Fun(done, Acc); % for RPC in Verne CLI
%% Alert is currently the only non-leaf element
parse([{alert, Elem} | T], Fun, Acc) ->
Acc1 = Fun(alert, Acc),
Expand Down

0 comments on commit 64fd324

Please sign in to comment.