logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://hacktivis.me/git/pleroma.git
commit: 6af6a9704d2d0a04a43967805368eed419b9dc67
parent f0468697cd74f4ec062f9c6feda53cfbe9e4500c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 23 Feb 2024 01:57:43 +0100

RemoteFetcherWorker: Make sure {:error, _} is returned on failure

Otherwise jobs are considered a success.

Diffstat:

Achangelog.d/remote-fetcher-error.skip0
Mlib/pleroma/workers/remote_fetcher_worker.ex7+++++--
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/changelog.d/remote-fetcher-error.skip b/changelog.d/remote-fetcher-error.skip diff --git a/lib/pleroma/workers/remote_fetcher_worker.ex b/lib/pleroma/workers/remote_fetcher_worker.ex @@ -22,8 +22,11 @@ defmodule Pleroma.Workers.RemoteFetcherWorker do {:error, :allowed_depth} -> {:discard, :allowed_depth} - _ -> - :error + {:error, _} = e -> + e + + e -> + {:error, e} end end