Format errors in Elixir terms