From: Ariadne Conill Date: Fri, 18 Oct 2019 02:42:25 +0000 (+0000) Subject: object fetcher: fix up error handling X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=6f110fc04ca31bf571fb80a2a852ab60ddd496ff;p=akkoma object fetcher: fix up error handling --- diff --git a/lib/pleroma/object/fetcher.ex b/lib/pleroma/object/fetcher.ex index 8975fb47e..9436e2730 100644 --- a/lib/pleroma/object/fetcher.ex +++ b/lib/pleroma/object/fetcher.ex @@ -162,8 +162,8 @@ defmodule Pleroma.Object.Fetcher do {:ok, %{status: code}} when code in [404, 410] -> {:error, "Object has been deleted"} - _ -> - {:error, "Could not fetch by AP id"} + e -> + {:error, e} end end