Skip to content

Commit

Permalink
Print type violation slogan
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jun 18, 2024
1 parent 776e5a3 commit d539770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/src/elixir_errors.erl
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ format_snippet(Severity, Position, File, Message, Snippet, Diagnostic) ->

unicode:characters_to_binary(Formatted).

format_detail(#{detail := #{typing_traces := _}}, Message) -> [Message | "\ntyping violation found at:"];
format_detail(#{details := #{typing_traces := _}}, Message) -> [Message | "\ntyping violation found at:"];
format_detail(_, Message) -> Message.

calculate_span_length({StartLine, StartCol}, #{span := {StartLine, EndCol}}) -> EndCol - StartCol;
Expand Down

0 comments on commit d539770

Please sign in to comment.