ReceiverWorker: Make sure non-{:ok, _} is returned as {:error, …} #753

Merged
floatingghost merged 1 commits from Oneric/akkoma:receive-worker-return into develop 2024-04-24 17:00:18 +00:00
Member

Same thing as b7dd739de1 and afaict the only other worker where a wrong return is as obvious (if a worker just forwards the result from some other module’s function i didn’t check if the format will always match)

Cherry-picked-from: pleroma@a299ddb10e

Same thing as b7dd739de1ab2b7fab36429724f004dfa7b29440 and afaict the only other worker where a wrong return is as obvious *(if a worker just forwards the result from some other module’s function i didn’t check if the format will always match)* Cherry-picked-from: [`pleroma@a299ddb10e`](https://git.pleroma.social/pleroma/pleroma/-/commit/a299ddb10e5b682194710d97eed541277c9d22b6)
Oneric added 1 commit 2024-04-21 19:04:06 +00:00
ci/woodpecker/pr/lint Pipeline was successful Details
ci/woodpecker/pr/test Pipeline was successful Details
ci/woodpecker/pr/build-arm64 unknown status Details
ci/woodpecker/pr/build-amd64 unknown status Details
ci/woodpecker/pr/docs unknown status Details
0c2f200b4d
ReceiverWorker: Make sure non-{:ok, _} is returned as {:error, …}
Otherwise an error like `{:signature, {:error, {:error, :not_found}}}`
ends up considered a success.

Cherry-picked-from: a299ddb10e

all good, thanks for pulling this in~

all good, thanks for pulling this in~
floatingghost merged commit 4a0e90e8a8 into develop 2024-04-24 17:00:18 +00:00
floatingghost deleted branch receive-worker-return 2024-04-24 17:00:18 +00:00
Sign in to join this conversation.
No description provided.