Merge pull request 'ReceiverWorker: Make sure non-{:ok, _} is returned as {:error, …}' (#753) from Oneric/akkoma:receive-worker-return into develop
Some checks are pending
ci/woodpecker/push/build-amd64 Pipeline is pending
ci/woodpecker/push/build-arm64 Pipeline is pending
ci/woodpecker/push/docs Pipeline is pending
ci/woodpecker/push/lint Pipeline is pending
ci/woodpecker/push/test Pipeline is pending

Reviewed-on: #753
This commit is contained in:
floatingghost 2024-04-24 17:00:18 +00:00
commit 4a0e90e8a8

View file

@ -14,7 +14,8 @@ def perform(%Job{args: %{"op" => "incoming_ap_doc", "params" => params}}) do
else else
{:error, :origin_containment_failed} -> {:discard, :origin_containment_failed} {:error, :origin_containment_failed} -> {:discard, :origin_containment_failed}
{:error, {:reject, reason}} -> {:discard, reason} {:error, {:reject, reason}} -> {:discard, reason}
e -> e {:error, _} = e -> e
e -> {:error, e}
end end
end end
end end