fix: properly wrap errored changesets in bulk creates

This commit is contained in:
Zach Daniel 2023-05-23 13:44:48 -04:00
parent 35b1278830
commit 58329a073d

View file

@ -568,7 +568,7 @@ defmodule Ash.Actions.Create.Bulk do
if opts[:stop_on_error?] && !opts[:return_stream?] do
throw({:error, Ash.Error.to_error_class(changeset.errors), 0, []})
else
changeset
{:error, changeset}
end
end
end)