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

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-09-27 11:10:54 +02:00
parent d830a243a3
commit e53da692fb
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE
1 changed files with 2 additions and 2 deletions

View File

@ -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