Skip to content

Commit 51d82cf

Browse files
committed
fix 'Did you mean' newlines
1 parent a334a3f commit 51d82cf

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

lib/elixir/lib/exception.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2242,7 +2242,7 @@ defmodule KeyError do
22422242

22432243
case suggestions do
22442244
[] -> []
2245-
suggestions -> [". Did you mean:\n\n" | format_suggestions(suggestions)]
2245+
suggestions -> ["\n\nDid you mean:\n\n" | format_suggestions(suggestions)]
22462246
end
22472247
end
22482248

lib/elixir/test/elixir/exception_test.exs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,9 @@ defmodule ExceptionTest do
703703
assert message == """
704704
key :firts not found in:
705705
706-
%{first: nil, second: nil}. Did you mean:
706+
%{first: nil, second: nil}
707+
708+
Did you mean:
707709
708710
* :first
709711
"""
@@ -749,7 +751,9 @@ defmodule ExceptionTest do
749751
deleted_at: nil,
750752
started_at: nil,
751753
finished_at: nil
752-
]. Did you mean:
754+
]
755+
756+
Did you mean:
753757
754758
* :created_at
755759
* :finished_at

0 commit comments

Comments
 (0)