transmogrifier: Use the correct variable and prefer inspect in case of a bad type...
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 27 Sep 2018 09:10:54 +0000 (11:10 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Thu, 27 Sep 2018 18:00:48 +0000 (20:00 +0200)
lib/pleroma/web/activity_pub/transmogrifier.ex

index 611c0e623bb976bc26a0be0c4cb41422ffa65a55..7bdb9594a0c390a3dc3e1515b03c981a6c8356d3 100644 (file)
@@ -126,12 +126,12 @@ defmodule Pleroma.Web.ActivityPub.Transmogrifier do
           |> Map.put("context", replied_object.data["context"] || object["conversation"])
         else
           e ->
-            Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}")
+            Logger.error("Couldn't fetch \"#{inspect(in_reply_to_id)}\", error: #{inspect(e)}")
             object
         end
 
       e ->
-        Logger.error("Couldn't fetch #{object["inReplyTo"]} #{inspect(e)}")
+        Logger.error("Couldn't fetch \"#{inspect(in_reply_to_id)}\", error: #{inspect(e)}")
         object
     end
   end