From 6cc22501c94d0b9cb9dde872e6032fd1b4022e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20K=C5=82osko?= Date: Mon, 15 Apr 2024 18:20:17 +0800 Subject: [PATCH] Include reason in the error message when the runtime node goes down during init --- lib/livebook/runtime/standalone_init.ex | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/livebook/runtime/standalone_init.ex b/lib/livebook/runtime/standalone_init.ex index 7a93f0b40..294f527a9 100644 --- a/lib/livebook/runtime/standalone_init.ex +++ b/lib/livebook/runtime/standalone_init.ex @@ -100,8 +100,9 @@ defmodule Livebook.Runtime.StandaloneInit do {^port, {:data, _output}} -> loop.(loop) - {:DOWN, ^port_ref, :port, _object, _reason} -> - {:error, "Elixir terminated unexpectedly, please check your logs for errors"} + {:DOWN, ^port_ref, :port, _object, reason} -> + {:error, + "Elixir terminated unexpectedly, please check your logs for errors. Reason: #{inspect(reason)}"} after # Use a longer timeout to account for longer child node startup. 30_000 ->