Show a proper error. A failure doesn't always mean the command isn't available, and...
[akkoma] / lib / pleroma / upload / filter / mogrifun.ex
index 9abdd2d516bf6986b80d70c96db2837230e6a53e..01126aaeb6c6908e2960ab766c4e7876860a3f4b 100644 (file)
@@ -44,8 +44,8 @@ defmodule Pleroma.Upload.Filter.Mogrifun do
       Filter.Mogrify.do_filter(file, [Enum.random(@filters)])
       {:ok, :filtered}
     rescue
-      _e in ErlangError ->
-        {:error, "mogrify command not found"}
+      e in ErlangError ->
+        {:error, "#{__MODULE__}: #{inspect(e)}"}
     end
   end