Skip to content

Commit 32113be

Browse files
committed
Support Elixir 1.14
1 parent 11dafbb commit 32113be

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

lib/ecto/migrator.ex

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ defmodule Ecto.Migrator do
686686
Migration files should end in .exs. Use "mix ecto.gen.migration" to generate \
687687
migration files with the correct extension.\
688688
""",
689-
file: file
689+
stacktrace_info(file: file)
690690
)
691691

692692
nil
@@ -699,6 +699,13 @@ defmodule Ecto.Migrator do
699699
end
700700
end
701701

702+
# TODO: Remove when we require Elixir 1.14
703+
if Version.match?(System.version(), ">= 1.14.0") do
704+
defp stacktrace_info(info), do: info
705+
else
706+
defp stacktrace_info(_info), do: []
707+
end
708+
702709
defp ensure_no_duplication!([{version, name, _} | t]) do
703710
cond do
704711
List.keyfind(t, version, 0) ->

0 commit comments

Comments
 (0)