Skip to content

Commit 1b7493a

Browse files
committed
Take 2
1 parent cc84060 commit 1b7493a

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

lib/elixir/lib/exception.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1661,7 +1661,7 @@ defmodule UndefinedFunctionError do
16611661
defp hint_for_missing_alias(module) do
16621662
with "Elixir." <> rest <- Atom.to_string(module),
16631663
false <- rest =~ "." do
1664-
". Make sure the module name is correct and that it has the proper namespace (if any)"
1664+
". Make sure the module name is correct and has been specified in full (or that an alias has been defined)"
16651665
else
16661666
_ -> ""
16671667
end

lib/elixir/test/elixir/exception_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ defmodule ExceptionTest do
614614

615615
assert blame_message(ENUM, & &1.not_a_function(&1, 1)) ==
616616
"function ENUM.not_a_function/2 is undefined (module ENUM is not available). " <>
617-
"Make sure the module name is correct and that it has the proper namespace (if any)"
617+
"Make sure the module name is correct and has been specified in full (or that an alias has been defined)"
618618

619619
assert blame_message(One, & &1.foo()) == """
620620
function One.foo/0 is undefined (module One is not available). Did you mean:
@@ -938,7 +938,7 @@ defmodule ExceptionTest do
938938
assert %UndefinedFunctionError{module: Foo, function: :bar, arity: 1}
939939
|> message ==
940940
"function Foo.bar/1 is undefined (module Foo is not available). " <>
941-
"Make sure the module name is correct and that it has the proper namespace (if any)"
941+
"Make sure the module name is correct and has been specified in full (or that an alias has been defined)"
942942

943943
assert %UndefinedFunctionError{module: nil, function: :bar, arity: 3}
944944
|> message == "function nil.bar/3 is undefined"

lib/elixir/test/elixir/kernel/diagnostics_test.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ defmodule Kernel.DiagnosticsTest do
819819
File.write!(path, source)
820820

821821
expected = """
822-
warning: Unknown.b/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and that it has the proper namespace (if any)
822+
warning: Unknown.b/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and has been specified in full (or that an alias has been defined)
823823
824824
3 │ defp a, do: Unknown.b()
825825
│ ~
@@ -846,7 +846,7 @@ defmodule Kernel.DiagnosticsTest do
846846
File.write!(path, source)
847847

848848
expected = """
849-
warning: Unknown.b/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and that it has the proper namespace (if any)
849+
warning: Unknown.b/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and has been specified in full (or that an alias has been defined)
850850
851851
3 │ defp a, do: Unknown.b()
852852
│ ~~~~~~~~~~~~~~~~~~~~~~~
@@ -867,7 +867,7 @@ defmodule Kernel.DiagnosticsTest do
867867
"""
868868

869869
expected = """
870-
warning: Unknown.b/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and that it has the proper namespace (if any)
870+
warning: Unknown.b/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and has been specified in full (or that an alias has been defined)
871871
└─ nofile:2:23: Sample.a/0
872872
"""
873873

@@ -955,7 +955,7 @@ defmodule Kernel.DiagnosticsTest do
955955
File.write!(path, source)
956956

957957
expected = """
958-
warning: Unknown.bar/1 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and that it has the proper namespace (if any)
958+
warning: Unknown.bar/1 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and has been specified in full (or that an alias has been defined)
959959
960960
5 │ ... Unknown.bar(:test)
961961
│ ~
@@ -1006,7 +1006,7 @@ defmodule Kernel.DiagnosticsTest do
10061006
"""
10071007

10081008
expected = """
1009-
warning: Unknown.bar/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and that it has the proper namespace (if any)
1009+
warning: Unknown.bar/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and has been specified in full (or that an alias has been defined)
10101010
└─ nofile:3:13: Sample.a/0
10111011
└─ nofile:4:13: Sample.a/0
10121012
└─ nofile:5:13: Sample.a/0
@@ -1039,7 +1039,7 @@ defmodule Kernel.DiagnosticsTest do
10391039
File.write!(path, source)
10401040

10411041
expected = """
1042-
warning: Unknown.bar/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and that it has the proper namespace (if any)
1042+
warning: Unknown.bar/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and has been specified in full (or that an alias has been defined)
10431043
10441044
5 │ Unknown.bar()
10451045
│ ~
@@ -1076,7 +1076,7 @@ defmodule Kernel.DiagnosticsTest do
10761076
File.write!(path, source)
10771077

10781078
expected = """
1079-
warning: Unknown.bar/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and that it has the proper namespace (if any)
1079+
warning: Unknown.bar/0 is undefined (module Unknown is not available or is yet to be defined). Make sure the module name is correct and has been specified in full (or that an alias has been defined)
10801080
10811081
5 │ Unknown.bar()
10821082
│ ~~~~~~~~~~~~~

lib/elixir/test/elixir/kernel/raise_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ defmodule Kernel.RaiseTest do
353353

354354
assert result ==
355355
"function DoNotExist.for_sure/0 is undefined (module DoNotExist is not available). " <>
356-
"Make sure the module name is correct and that it has the proper namespace (if any)"
356+
"Make sure the module name is correct and has been specified in full (or that an alias has been defined)"
357357
end
358358

359359
test "function clause error" do
@@ -571,7 +571,7 @@ defmodule Kernel.RaiseTest do
571571

572572
assert result ==
573573
"function DoNotExist.for_sure/0 is undefined (module DoNotExist is not available). " <>
574-
"Make sure the module name is correct and that it has the proper namespace (if any)"
574+
"Make sure the module name is correct and has been specified in full (or that an alias has been defined)"
575575
end
576576
end
577577

@@ -589,7 +589,7 @@ defmodule Kernel.RaiseTest do
589589

590590
assert result ==
591591
"function DoNotExist.for_sure/0 is undefined (module DoNotExist is not available). " <>
592-
"Make sure the module name is correct and that it has the proper namespace (if any)"
592+
"Make sure the module name is correct and has been specified in full (or that an alias has been defined)"
593593
end
594594

595595
defp zero(0), do: 0

lib/elixir/test/elixir/module/types/expr_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ defmodule Module.Types.ExprTest do
776776
) ==
777777
{dynamic(),
778778
"struct UnknownError is undefined (module UnknownError is not available or is yet to be defined). " <>
779-
"Make sure the module name is correct and that it has the proper namespace (if any)"}
779+
"Make sure the module name is correct and has been specified in full (or that an alias has been defined)"}
780780

781781
assert typewarn!(
782782
try do

lib/ex_unit/test/ex_unit/doc_test_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ defmodule ExUnit.DocTestTest do
644644
assert output =~ """
645645
5) doctest module ExUnit.DocTestTest.Failure (5) (ExUnit.DocTestTest.FailureCompiled)
646646
test/ex_unit/doc_test_test.exs:#{doctest_line}
647-
** (UndefinedFunctionError) function Hello.world/0 is undefined (module Hello is not available). Make sure the module name is correct and that it has the proper namespace (if any)
647+
** (UndefinedFunctionError) function Hello.world/0 is undefined (module Hello is not available). Make sure the module name is correct and has been specified in full (or that an alias has been defined)
648648
stacktrace:
649649
Hello.world()
650650
(for doctest at) test/ex_unit/doc_test_test.exs:#{starting_line + 15}: (test)

0 commit comments

Comments
 (0)