Skip to content

Commit bb262d8

Browse files
committed
Raise if elixirc_paths is not a list of string paths, closes elixir-lang#14862
1 parent bd3b2f6 commit bb262d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/mix/lib/mix/tasks/compile.elixir.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ defmodule Mix.Tasks.Compile.Elixir do
121121
dest = Mix.Project.compile_path(project)
122122
srcs = project[:elixirc_paths]
123123

124-
if not is_list(srcs) do
125-
Mix.raise(":elixirc_paths should be a list of paths, got: #{inspect(srcs)}")
124+
if not (is_list(srcs) and Enum.all?(srcs, &is_binary/1)) do
125+
Mix.raise(":elixirc_paths should be a list of string paths, got: #{inspect(srcs)}")
126126
end
127127

128128
manifest = manifest()

0 commit comments

Comments
 (0)