Object.Fetcher: Fix getting transmogrifier reject reason

This commit is contained in:
Haelwenn (lanodan) Monnier 2020-09-17 16:17:16 +02:00
parent b0c778fde7
commit 461123110b
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE

View file

@ -102,6 +102,9 @@ def fetch_object_from_id(id, options \\ []) do
{:transmogrifier, {:error, {:reject, e}}} -> {:transmogrifier, {:error, {:reject, e}}} ->
{:reject, e} {:reject, e}
{:transmogrifier, {:reject, e}} ->
{:reject, e}
{:transmogrifier, _} = e -> {:transmogrifier, _} = e ->
{:error, e} {:error, e}