Using the error now
This commit is contained in:
parent
c6480eaf24
commit
d265c2c0f1
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user