From: Haelwenn (lanodan) Monnier Date: Fri, 26 Jun 2020 18:10:47 +0000 (+0200) Subject: object/fetcher: Pass full Transmogrifier error X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=1566543bec70e6497df77ed83bf4d3cc39c116eb;p=akkoma object/fetcher: Pass full Transmogrifier error --- diff --git a/lib/pleroma/object/fetcher.ex b/lib/pleroma/object/fetcher.ex index 263ded5dd..3e2949ee2 100644 --- a/lib/pleroma/object/fetcher.ex +++ b/lib/pleroma/object/fetcher.ex @@ -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)