fix: properly catch errors in atomic changeset casting

This commit is contained in:
Zach Daniel 2024-02-23 19:16:31 -05:00
parent 0fd4e36b2e
commit 80be80c151

View file

@ -804,7 +804,7 @@ defmodule Ash.Changeset do
{:halt, {:not_atomic, reason}} {:halt, {:not_atomic, reason}}
end end
%{valid?: false} -> %{valid?: false} = changeset ->
{:cont, changeset} {:cont, changeset}
end end
else else