Include reason in the error message when the runtime node goes down during init

This commit is contained in:
Jonatan Kłosko 2024-04-15 18:20:17 +08:00
parent 4c356eefed
commit 6cc22501c9

View file

@ -100,8 +100,9 @@ defmodule Livebook.Runtime.StandaloneInit do
{^port, {:data, _output}} -> {^port, {:data, _output}} ->
loop.(loop) loop.(loop)
{:DOWN, ^port_ref, :port, _object, _reason} -> {:DOWN, ^port_ref, :port, _object, reason} ->
{:error, "Elixir terminated unexpectedly, please check your logs for errors"} {:error,
"Elixir terminated unexpectedly, please check your logs for errors. Reason: #{inspect(reason)}"}
after after
# Use a longer timeout to account for longer child node startup. # Use a longer timeout to account for longer child node startup.
30_000 -> 30_000 ->