Properly handle porcelain result

This commit is contained in:
Marcin Kulik 2017-05-29 12:18:14 +02:00
parent 07fdf2b7f1
commit 48ae3e353d

View File

@ -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