Skip to content

Commit 4689205

Browse files
committed
Improve warning as errors deprecation notice
1 parent 86d3751 commit 4689205

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/elixir/lib/code.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,9 @@ defmodule Code do
17171717
def put_compiler_option(:warnings_as_errors, _value) do
17181718
IO.warn(
17191719
":warnings_as_errors is deprecated as part of Code.put_compiler_option/2, " <>
1720-
"pass it as option to Kernel.ParallelCompiler instead"
1720+
"pass it as option to Kernel.ParallelCompiler instead or as a --warnings-as-errors flag. " <>
1721+
"If you need to set it as a default in a mix task, you can also set it under aliases: " <>
1722+
"[compile: \"compile --warnings-as-errors\"]"
17211723
)
17221724

17231725
:ok

0 commit comments

Comments
 (0)