object/fetcher: Pass full Transmogrifier error
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Fri, 26 Jun 2020 18:10:47 +0000 (20:10 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Fri, 26 Jun 2020 18:10:47 +0000 (20:10 +0200)
lib/pleroma/object/fetcher.ex

index 263ded5dd50f54fa36c2e5b64576144c1b38f731..3e2949ee2354f3009ae68142a1a01a5a10b86c6b 100644 (file)
@@ -83,8 +83,8 @@ defmodule Pleroma.Object.Fetcher do
       {:transmogrifier, {:error, {:reject, nil}}} ->
         {:reject, nil}
 
-      {:transmogrifier, _} ->
-        {:error, "Transmogrifier failure."}
+      {:transmogrifier, _} = e ->
+        {:error, e}
 
       {:object, data, nil} ->
         reinject_object(%Object{}, data)