From f3bbcd2c79a3e6c5a99a1660ac37fdba1c9d647b Mon Sep 17 00:00:00 2001 From: Thales Macedo Garitezi Date: Fri, 24 Dec 2021 08:09:48 -0300 Subject: [PATCH] chore(nodetool): always print result --- bin/nodetool | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/nodetool b/bin/nodetool index 9d5b659de..ff348ee18 100755 --- a/bin/nodetool +++ b/bin/nodetool @@ -134,8 +134,10 @@ do(Args) -> %% format the result as well: case rpc:call(TargetNode, 'Elixir.Kernel', inspect, [Value, [{pretty, true}]]) of {badrpc, Reason} -> - io:format("RPC to ~p failed: ~p~n", [TargetNode, Reason]), - halt(1); + io:format( + "Warning: failed to format term with Elixir syntax. Reason: ~p~n" + "Warning: falling back to Erlang syntax:~n" + "~p~n", [Reason, Value]); PrettyStr -> io:format("~s~n", [PrettyStr]) end;