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 173fc52 commit f5b71a7Copy full SHA for f5b71a7
lib/iex/lib/iex.ex
@@ -928,13 +928,18 @@ defmodule IEx do
928
mfa
929
end
930
931
- :ok = :shell.start_interactive(shell)
+ case :shell.start_interactive(shell) do
932
+ :ok ->
933
+ receive do
934
+ {^ref, shell} -> shell
935
+ after
936
+ 15_000 ->
937
+ IO.puts(:stderr, "Could not start IEx CLI due to reason: :boot_timeout")
938
+ System.halt(1)
939
+ end
940
- receive do
- {^ref, shell} -> shell
- after
- 15_000 ->
- IO.puts(:stderr, "Could not start the shell after 15 seconds, aborting...")
941
+ {:error, reason} ->
942
+ IO.puts(:stderr, "Could not start IEx CLI due to reason: #{inspect(reason)}")
943
System.halt(1)
944
945
0 commit comments