Using the error now

This commit is contained in:
Mark Felder 2021-02-15 21:32:48 +00:00
parent c6480eaf24
commit d265c2c0f1
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ defmodule Pleroma.Upload.Filter.Mogrifun do
Filter.Mogrify.do_filter(file, [Enum.random(@filters)])
{:ok, :filtered}
rescue
_e in ErlangError ->
e in ErlangError ->
{:error, "#{__MODULE__}: #{inspect(e)}"}
end
end

View File

@ -14,7 +14,7 @@ defmodule Pleroma.Upload.Filter.Mogrify do
do_filter(file, Pleroma.Config.get!([__MODULE__, :args]))
{:ok, :filtered}
rescue
_e in ErlangError ->
e in ErlangError ->
{:error, "#{__MODULE__}: #{inspect(e)}"}
end
end