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 555eac7 commit 3fb82c3Copy full SHA for 3fb82c3
lib/elixir/lib/kernel.ex
@@ -2082,8 +2082,9 @@ defmodule Kernel do
2082
defp invalid_concat_left_argument_error(arg) do
2083
:erlang.error(
2084
ArgumentError.exception(
2085
- "the left argument of <> operator inside a match should always be a literal " <>
2086
- "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 " <>
2087
+ "an existing variable with the pin operator (such as ^some_var). Got: #{arg}"
2088
)
2089
2090
end
0 commit comments