Capture stderr when invoking a2png
This commit is contained in:
parent
48ae3e353d
commit
20baf9e9eb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user