Skip to content

Commit 61e5ea7

Browse files
authored
Update error message for supported string keys for fields (#410)
1 parent 3b6e160 commit 61e5ea7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/phoenix_html/form.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ defmodule Phoenix.HTML.Form do
9090

9191
def fetch(%Form{}, field) do
9292
raise ArgumentError,
93-
"accessing a form with form[field] requires the field to be atom, got: #{inspect(field)}"
93+
"accessing a form with form[field] requires the field to be an atom or a string, got: #{inspect(field)}"
9494
end
9595

9696
defp fetch(%{errors: errors} = form, field, field_as_string) do

0 commit comments

Comments
 (0)