We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8cc841 commit ef3e279Copy full SHA for ef3e279
lib/elixir/lib/kernel.ex
@@ -2076,8 +2076,9 @@ defmodule Kernel do
2076
defp invalid_concat_left_argument_error(arg) do
2077
:erlang.error(
2078
ArgumentError.exception(
2079
- "the left argument of <> operator inside a match should always be a literal " <>
2080
- "binary because its size can't be verified. Got: #{arg}"
+ "cannot perform prefix match because the left operand of <> has unknown size. " <>
+ "The left operand of <> inside a match should either be a literal binary or " <>
2081
+ "an existing variable with the pin operator (such as ^some_var). Got: #{arg}"
2082
)
2083
2084
end
0 commit comments