Skip to content

New lines break exception message redering difficult to understand #14819

@eksperimental

Description

@eksperimental

Elixir and Erlang/OTP versions

New lines have been added to KeyError exception message.

Operating system

MacOs

Current behavior

Given this code:

defmodule Debug119 do
  def my_fetch!(map, key) when is_map(map) do
    Map.fetch!(map, key)
  end
end

On Elixir v1.18

Image

On Elixir v1.19-rc1

Image

\n\n are added after the colon.

Expected behavior

As before

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions