Web Dev Solutions

Catalin Mititiuc

From f85f240e2b7ec64a96c626857281c1a7d694c053 Mon Sep 17 00:00:00 2001 From: Catalin Mititiuc Date: Thu, 16 Jan 2025 14:55:10 -0800 Subject: Won't raise if deleting the output file fails --- lib/pandoc.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/pandoc.ex') diff --git a/lib/pandoc.ex b/lib/pandoc.ex index ca30847..669b5ff 100644 --- a/lib/pandoc.ex +++ b/lib/pandoc.ex @@ -172,7 +172,7 @@ defmodule Pandoc do not File.cd!(opts[:cd], fn -> input_files |> Enum.map(&File.exists?(&1)) |> Enum.all?() end) do - parsed_args[:output] |> Path.expand(opts[:cd]) |> File.rm!() + parsed_args[:output] |> Path.expand(opts[:cd]) |> File.rm() else bin_path() |> System.cmd(args ++ extra_args, opts) |> elem(1) end -- cgit v1.2.3