We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 949ac2b commit bcbe91aCopy full SHA for bcbe91a
lib/iex/lib/iex/cli.ex
@@ -81,9 +81,18 @@ defmodule IEx.CLI do
81
if Node.alive?() do
82
case :rpc.call(remote, :code, :ensure_loaded, [IEx]) do
83
{:badrpc, reason} ->
84
- abort(
85
- "Could not contact remote node #{remote}, reason: #{inspect(reason)}. Aborting..."
86
- )
+ suggestion =
+ if Atom.to_string(remote) =~ "@" do
+ ""
87
+ else
88
+ "Make sure the node given to --remsh is in the node@host format. "
89
+ end
90
+
91
+ message =
92
+ "Could not contact remote node #{remote}, reason: #{inspect(reason)}. " <>
93
+ suggestion <> "Aborting..."
94
95
+ abort(message)
96
97
{:module, IEx} ->
98
{mod, fun, args} = remote_start_mfa()
0 commit comments