فهرست منبع

chore(nodetool): always print result

Thales Macedo Garitezi 4 سال پیش
والد
کامیت
f3bbcd2c79
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      bin/nodetool

+ 4 - 2
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;