mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-01-03 05:48:42 +00:00
More error annotations
This commit is contained in:
parent
c5ca806aa0
commit
8a3efa7152
1 changed files with 3 additions and 0 deletions
|
@ -75,8 +75,11 @@ defmodule Pleroma.Workers.ReceiverWorker do
|
||||||
{:error, {:reject, _} = reason} -> {:cancel, reason}
|
{:error, {:reject, _} = reason} -> {:cancel, reason}
|
||||||
# HTTP Sigs
|
# HTTP Sigs
|
||||||
{:signature, false} -> {:cancel, :invalid_signature}
|
{:signature, false} -> {:cancel, :invalid_signature}
|
||||||
|
# Origin / URL validation failed somewhere possibly due to spoofing
|
||||||
{:error, :origin_containment_failed} -> {:cancel, :origin_containment_failed}
|
{:error, :origin_containment_failed} -> {:cancel, :origin_containment_failed}
|
||||||
|
# Unclear if this can be reached
|
||||||
{:error, {:side_effects, {:error, :no_object_actor}} = reason} -> {:cancel, reason}
|
{:error, {:side_effects, {:error, :no_object_actor}} = reason} -> {:cancel, reason}
|
||||||
|
# Catchall
|
||||||
{:error, _} = e -> e
|
{:error, _} = e -> e
|
||||||
e -> {:error, e}
|
e -> {:error, e}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue