Verified Commit e53da692 authored by Haelwenn's avatar Haelwenn
Browse files

transmogrifier: Use the correct variable and prefer inspect in case of a bad type being passed on

parent d830a243
......@@ -126,12 +126,12 @@ def fix_in_reply_to(%{"inReplyTo" => in_reply_to} = object)
|> 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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment