Skip to content

Commit f1a6a4e

Browse files
eksperimentaljosevalim
authored andcommitted
Improve Kernel.ParallelCompiler warning (#14820)
1 parent c7884ca commit f1a6a4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/elixir/lib/kernel/parallel_compiler.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,10 @@ defmodule Kernel.ParallelCompiler do
321321
if Keyword.get(options, :return_diagnostics, false) do
322322
{status, modules_or_errors, info}
323323
else
324-
IO.warn("you must pass return_diagnostics: true when invoking Kernel.ParallelCompiler")
324+
IO.warn(
325+
"you must pass return_diagnostics: true when invoking Kernel.ParallelCompiler functions"
326+
)
327+
325328
to_tuples = &Enum.map(&1, fn diag -> {diag.file, diag.position, diag.message} end)
326329

327330
modules_or_errors =

0 commit comments

Comments
 (0)