Capture stderr when invoking a2png

This commit is contained in:
Marcin Kulik 2017-05-29 12:40:58 +02:00
parent 48ae3e353d
commit 20baf9e9eb

View File

@ -67,7 +67,7 @@ defmodule Asciinema.PngGenerator.A2png do
with {:ok, file} <- file_store().open(path),
{:ok, _} <- :file.copy(file, json_path),
process <- Porcelain.spawn(bin_path(), args),
process <- Porcelain.spawn(bin_path(), args, err: :string),
{:ok, %{status: 0}} <- Porcelain.Process.await(process, @a2png_timeout) do
{:ok, png_path}
else