Skip to content

Commit

Permalink
improve clarity of error message when deployment restart fails
Browse files Browse the repository at this point in the history
  • Loading branch information
breunigs committed Dec 16, 2023
1 parent dc63de3 commit 31efcf0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mix/tasks/deploy.ex
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ defmodule Mix.Tasks.Deploy do
# sleep 15s
Process.sleep(15_000)

{_, 0} =
{_, exit_status} =
System.cmd(
"ssh",
[
Expand All @@ -257,6 +257,8 @@ defmodule Mix.Tasks.Deploy do
],
into: IO.stream(:stdio, :line)
)

0 = exit_status
end

defp preload_videos(%{skip_deploy: true}), do: nil
Expand Down

0 comments on commit 31efcf0

Please sign in to comment.