Skip to content

Commit

Permalink
Only emit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
peixian committed Jan 11, 2024
1 parent d6940a8 commit 8538945
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/elixir/src/elixir_errors.erl
Expand Up @@ -96,8 +96,12 @@ print_diagnostic(#{severity := Severity, message := M, stacktrace := Stacktrace,
false -> [["\n ", 'Elixir.Exception':format_stacktrace_entry(E)] || E <- Stacktrace]
end,

case Severity of
error -> io:put_chars(standard_error, [Output, MaybeStack, $\n, $\n]);
_ -> ok
end,
%io:put_chars(standard_error, [Output, MaybeStack, $\n, $\n]),
ok,
%%ok,
Diagnostic.

emit_diagnostic(Severity, Position, File, Message, Stacktrace, Options) ->
Expand Down

0 comments on commit 8538945

Please sign in to comment.