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 90928ea commit 98ba6feCopy full SHA for 98ba6fe
lib/ecto/query/builder.ex
@@ -707,7 +707,7 @@ defmodule Ecto.Query.Builder do
707
708
defp escape_field!(expr, field, _vars) do
709
error!("""
710
- cannot fetch field `#{field}` from `#{Macro.to_string(expr)}`. Can only fetch fields from:
+ cannot fetch field `#{Macro.to_string(field)}` from `#{Macro.to_string(expr)}`. Can only fetch fields from:
711
712
* sources, such as `p` in `from p in Post`
713
* named bindings, such as `as(:post)` in `from Post, as: :post`
0 commit comments