Properly handle porcelain result
This commit is contained in:
parent
07fdf2b7f1
commit
48ae3e353d
@ -71,6 +71,8 @@ defmodule Asciinema.PngGenerator.A2png do
|
||||
{:ok, %{status: 0}} <- Porcelain.Process.await(process, @a2png_timeout) do
|
||||
{:ok, png_path}
|
||||
else
|
||||
{:ok, %Porcelain.Result{} = result} ->
|
||||
{:error, result}
|
||||
otherwise ->
|
||||
otherwise
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user