Skip to content

Commit

Permalink
handle unhandled output from wait operation
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Apr 12, 2024
1 parent 6ad8edf commit 54c5505
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/formation/lxd.ex
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ defmodule Formation.Lxd do
{:ok, %{body: %{"status_code" => status_code} = error}} when status_code >= 400 ->
{:error, error}

{:ok, _} ->
{:error, "failed to retrieve log output"}

{:error, error} ->
{:error, error}
end
Expand Down

0 comments on commit 54c5505

Please sign in to comment.