mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2025-01-11 01:50:24 +00:00
Merge pull request 'ReceiverWorker: Make sure non-{:ok, _} is returned as {:error, …}' (#753) from Oneric/akkoma:receive-worker-return into develop
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/753
This commit is contained in:
commit
4a0e90e8a8
|
@ -14,7 +14,8 @@ defmodule Pleroma.Workers.ReceiverWorker do
|
|||
else
|
||||
{:error, :origin_containment_failed} -> {:discard, :origin_containment_failed}
|
||||
{:error, {:reject, reason}} -> {:discard, reason}
|
||||
e -> e
|
||||
{:error, _} = e -> e
|
||||
e -> {:error, e}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue